From 222b76d38c8f2ab48470544dd37072ca5eee6558 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 15 Aug 2011 20:21:19 +0200 Subject: make df alias smarter Signed-off-by: Florian Pritz --- .zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 7f71f86..ff4fefc 100644 --- a/.zshrc +++ b/.zshrc @@ -645,7 +645,11 @@ alias dum='du -kh --max-depth=2' alias du='du -kh' alias dus='du -skh' #alias df='df -kTh' -alias df='pydf' +if type pydf &>/dev/null; then + alias df='pydf' +else + alias df="df -h" +fi # function to make ls look nice is below alias ll='ls -l' -- cgit v1.2.3-24-g4f1b