# HG changeset patch # User meillo@marmaro.de # Date 1196090325 -3600 # Node ID d339ec9b65457863864521fd5a534a938b8dd13a # Parent c5e14bee7dbce2e5bc19ac5c1ceb7fc9ec34609a added bash function "dusch"; improved "du1" and "du2" diff -r c5e14bee7dbc -r d339ec9b6545 .bashrc --- a/.bashrc Thu Nov 22 18:14:52 2007 +0100 +++ b/.bashrc Mon Nov 26 16:18:45 2007 +0100 @@ -94,11 +94,22 @@ command xpdf -z page "$@" & } +function dusch { + du -sch * +} function du1 { - du -h --max-depth=1 --exclude=".?*" "$@" + if [ "$*" = "" ] ; then + du -h --max-depth=1 --exclude=".?*" "`pwd`" + else + du -h --max-depth=1 --exclude=".?*" "$@" + fi } function du2 { - du -h --max-depth=2 --exclude=".?*" "$@" + if [ "$*" = "" ] ; then + du -h --max-depth=2 --exclude=".?*" "`pwd`" + else + du -h --max-depth=2 --exclude=".?*" "$@" + fi } function psgrep {