Fixed topc & topm aliases for Linux & Mac
This commit is contained in:
parent
cf9d12a7c9
commit
c311639094
1 changed files with 9 additions and 2 deletions
|
@ -146,8 +146,15 @@ alias du='du -kh'
|
|||
if (( $+commands[htop] )); then
|
||||
alias top=htop
|
||||
else
|
||||
alias topc='top -o %CPU'
|
||||
alias topm='top -o %MEM'
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
# Mac OS X
|
||||
alias topc='top -o cpu'
|
||||
alias topm='top -o vsize'
|
||||
else
|
||||
# Linux or Cygwin
|
||||
alias topc='top -o %CPU'
|
||||
alias topm='top -o %MEM'
|
||||
fi
|
||||
fi
|
||||
|
||||
# Miscellaneous
|
||||
|
|
Loading…
Add table
Reference in a new issue