From 9d315b6ee189ec44fe651ee237b6f71afbce93ff Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Wed, 22 Jun 2016 11:38:34 +0100 Subject: [PATCH] Alias du and sort to use GNU versions. Add an alias, 'space' to show disk usage in the current directory. --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index d69902b..c2b3a1d 100755 --- a/.bashrc +++ b/.bashrc @@ -125,6 +125,10 @@ alias ll='ls -l' [[ -x $(which htop 2>/dev/null) ]] && alias top='sudo htop' [[ -x $(which psgrep 2>/dev/null) ]] || alias psgrep='ps -ef | grep' alias datafart='curl --data-binary @- datafart.com' +[[ -x $(which gdu 2>/dev/null) ]] && alias du='gdu' +[[ -x $(which gsort 2>/dev/null) ]] && alias sort='gsort' + +alias space='du -ahx --max-depth=1 | sort -h' #-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------