From 81b41d2367542abc742d113dc4e43f8245d11c41 Mon Sep 17 00:00:00 2001 From: Guillaume Subiron Date: Fri, 18 Mar 2016 08:29:57 +0100 Subject: [PATCH] Add utility alias for pydf --- modules/utility/README.md | 2 +- modules/utility/init.zsh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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