|
|
@ -146,9 +146,16 @@ alias du='du -kh'
|
|
|
|
if (( $+commands[htop] )); then
|
|
|
|
if (( $+commands[htop] )); then
|
|
|
|
alias top=htop
|
|
|
|
alias top=htop
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
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 topc='top -o %CPU'
|
|
|
|
alias topm='top -o %MEM'
|
|
|
|
alias topm='top -o %MEM'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Miscellaneous
|
|
|
|
# Miscellaneous
|
|
|
|
|
|
|
|
|
|
|
|