Alias du and sort to use GNU versions.

Add an alias, 'space' to show disk usage in the current directory.
This commit is contained in:
Scott Wallace 2016-06-22 11:38:34 +01:00
parent f9dacaa368
commit 9d315b6ee1

View file

@ -125,6 +125,10 @@ alias ll='ls -l'
[[ -x $(which htop 2>/dev/null) ]] && alias top='sudo htop' [[ -x $(which htop 2>/dev/null) ]] && alias top='sudo htop'
[[ -x $(which psgrep 2>/dev/null) ]] || alias psgrep='ps -ef | grep' [[ -x $(which psgrep 2>/dev/null) ]] || alias psgrep='ps -ef | grep'
alias datafart='curl --data-binary @- datafart.com' 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'
#-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------
#-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------