summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-08-15 20:21:19 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-08-15 20:21:19 +0200
commit222b76d38c8f2ab48470544dd37072ca5eee6558 (patch)
tree8cab9ddae77d3905675bca216f01d38c2f56212a /.zshrc
parente8df407a2580661654f79b7ade5d89853bef7e7d (diff)
downloaddotfiles-222b76d38c8f2ab48470544dd37072ca5eee6558.tar.gz
dotfiles-222b76d38c8f2ab48470544dd37072ca5eee6558.tar.xz
make df alias smarter
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc6
1 files changed, 5 insertions, 1 deletions
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'