Browse Source

Add utility alias for pydf

master
Guillaume Subiron 8 years ago committed by Kaleb Elwert
parent
commit
81b41d2367
  1. 2
      modules/utility/README.md
  2. 7
      modules/utility/init.zsh

2
modules/utility/README.md

@ -105,7 +105,7 @@ Aliases
### Resource Usage ### Resource Usage
- `df` displays free disk space using human readable units. - `df` displays free disk space using human readable units (aliases to `pydf`, if installed).
- `du` displays disk usage using human readable units. - `du` displays disk usage using human readable units.
- `top` displays information about processes (aliased to `htop`, if installed). - `top` displays information about processes (aliased to `htop`, if installed).
- `topc` displays information about processes sorted by CPU usage (`htop` not - `topc` displays information about processes sorted by CPU usage (`htop` not

7
modules/utility/init.zsh

@ -142,7 +142,12 @@ elif (( $+commands[wget] )); then
fi fi
# Resource Usage # Resource Usage
alias df='df -kh' if (( $+commands[pydf] )); then
alias df=pydf
else
alias df='df -kh'
fi
alias du='du -kh' alias du='du -kh'
if (( $+commands[htop] )); then if (( $+commands[htop] )); then

Loading…
Cancel
Save