-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
32 lines (27 loc) · 939 Bytes
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
export PS1='\[\033[31m\]\u@\h\[\033[00m\] \[\033[33m\]\t\[\033[00m\] \[\033[34m\]\w\[\033[00m\]\n\[\033[$((32-!$?))m\]\$\[\033[00m\] '
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias l="ls -lh"
alias ll="ls -lAh"
alias l.="ls -d .*"
alias la="ls -A"
alias dfh="df -Th"
alias dfc="/usr/bin/dfc -dT"
alias pbcopy="xclip -sel clipboard"
alias emin="emerge -avq"
alias ems="emerge -s"
alias emsync="emerge --sync"
alias emup="emerge -auvqDN --with-bdeps=y @world"
alias emcl="emerga -a --depclean"
duh() { du -d 1 -h $* | sort -h ; }
mkcd() { dir="$*" ; mkdir -pv "$dir" && cd "$dir" ; }
psg() { ps -eaf | grep -i "$@" | grep -v -e "grep .* -i" ; }
psgw() { ps auxw | grep -i "$@" | grep -v -e "grep .* -i" ; }
HISTCONTROL=ignoredups:erasedups
HISTTIMEFORMAT="%F %T "
export HISTSIZE=100000
export HISTFILESIZE=100000
shopt -s histappend
bash_append_history() { history -a ; }
PROMPT_COMMAND+=('bash_append_history')