mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 19:48:00 +00:00
parent
ecc34e0051
commit
7c172fc9a7
@ -107,11 +107,9 @@ Aliases
|
||||
|
||||
- `df` displays free disk space using human readable units (aliases to `pydf`, if installed).
|
||||
- `du` displays disk usage using human readable units.
|
||||
- `top` displays information about processes (aliased to `htop`, if installed).
|
||||
- `topc` displays information about processes sorted by CPU usage (`htop` not
|
||||
installed).
|
||||
- `topm` displays information about processes sorted by RAM usage (`htop` not
|
||||
installed).
|
||||
- `top` displays information about processes.
|
||||
- `topc` displays information about processes sorted by CPU usage.
|
||||
- `topm` displays information about processes sorted by RAM usage.
|
||||
|
||||
### Miscellaneous
|
||||
|
||||
|
@ -150,16 +150,12 @@ fi
|
||||
|
||||
alias du='du -kh'
|
||||
|
||||
if (( $+commands[htop] )); then
|
||||
alias top=htop
|
||||
if [[ "$OSTYPE" == (darwin*|*bsd*) ]]; then
|
||||
alias topc='top -o cpu'
|
||||
alias topm='top -o vsize'
|
||||
else
|
||||
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
|
||||
alias topc='top -o %CPU'
|
||||
alias topm='top -o %MEM'
|
||||
fi
|
||||
|
||||
# Miscellaneous
|
||||
|
Loading…
Reference in New Issue
Block a user