mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-01 03:51:12 +00:00
[Fix #776] Support GNU top
This commit is contained in:
parent
88aee30ae8
commit
933c61b8f1
@ -146,8 +146,13 @@ alias du='du -kh'
|
|||||||
if (( $+commands[htop] )); then
|
if (( $+commands[htop] )); then
|
||||||
alias top=htop
|
alias top=htop
|
||||||
else
|
else
|
||||||
alias topc='top -o cpu'
|
if [[ "$OSTYPE" == darwin*|*bsd* ]]; then
|
||||||
alias topm='top -o vsize'
|
alias topc='top -o cpu'
|
||||||
|
alias topm='top -o vsize'
|
||||||
|
else
|
||||||
|
alias topc='top -o %CPU'
|
||||||
|
alias topm='top -o %MEM'
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Miscellaneous
|
# Miscellaneous
|
||||||
|
Loading…
Reference in New Issue
Block a user