common aliases

This commit is contained in:
Loic Nageleisen 2011-05-29 15:57:54 +02:00
parent 84ed805698
commit a232c137d7
3 changed files with 16 additions and 3 deletions

13
aliases Normal file
View file

@ -0,0 +1,13 @@
## .aliases
case "$(uname)" in
"Darwin")
alias top="top -o cpu -s 5"
;;
"Linux")
alias ls="ls --color"
;;
esac
alias ll="ls -l"

4
bashrc
View file

@ -15,7 +15,5 @@ shopt -s cdspell
# turn off bells
set bell-style none
#alias ls="ls --color"
alias ll="ls -l"
alias top="top -o cpu -s 5"
source ~/.aliases

2
zshrc
View file

@ -34,3 +34,5 @@ zstyle ':completion:*' verbose true
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
source ~/.aliases