Browse Source

[Fix #776] Support GNU top

master
Sorin Ionescu 10 years ago
parent
commit
933c61b8f1
  1. 5
      modules/utility/init.zsh

5
modules/utility/init.zsh

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

Loading…
Cancel
Save