[Fix #776] Support GNU top

This commit is contained in:
Sorin Ionescu 2015-02-22 21:42:11 -05:00
parent 88aee30ae8
commit 933c61b8f1
1 changed files with 7 additions and 2 deletions

View File

@ -146,8 +146,13 @@ alias du='du -kh'
if (( $+commands[htop] )); then
alias top=htop
else
alias topc='top -o cpu'
alias topm='top -o vsize'
if [[ "$OSTYPE" == darwin*|*bsd* ]]; then
alias topc='top -o cpu'
alias topm='top -o vsize'
else
alias topc='top -o %CPU'
alias topm='top -o %MEM'
fi
fi
# Miscellaneous