diff --git a/modules/utility/README.md b/modules/utility/README.md index 2d276d6..c949a66 100644 --- a/modules/utility/README.md +++ b/modules/utility/README.md @@ -105,7 +105,7 @@ Aliases ### 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. - `top` displays information about processes (aliased to `htop`, if installed). - `topc` displays information about processes sorted by CPU usage (`htop` not diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index 34ff578..33ec147 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -142,7 +142,12 @@ elif (( $+commands[wget] )); then fi # Resource Usage -alias df='df -kh' +if (( $+commands[pydf] )); then + alias df=pydf +else + alias df='df -kh' +fi + alias du='du -kh' if (( $+commands[htop] )); then