dotfiles

diff .bashrc @ 10:d339ec9b6545

added bash function "dusch"; improved "du1" and "du2"
author meillo@marmaro.de
date Mon, 26 Nov 2007 16:18:45 +0100
parents c5e14bee7dbc
children 0b38217ca1fd
line diff
     1.1 --- a/.bashrc	Thu Nov 22 18:14:52 2007 +0100
     1.2 +++ b/.bashrc	Mon Nov 26 16:18:45 2007 +0100
     1.3 @@ -94,11 +94,22 @@
     1.4    command xpdf -z page "$@" &
     1.5  }
     1.6  
     1.7 +function dusch {
     1.8 +	du -sch *
     1.9 +}
    1.10  function du1 {
    1.11 -  du -h --max-depth=1 --exclude=".?*" "$@"
    1.12 +	if [ "$*" = "" ] ; then
    1.13 +		du -h --max-depth=1 --exclude=".?*" "`pwd`"
    1.14 +	else
    1.15 +		du -h --max-depth=1 --exclude=".?*" "$@"
    1.16 +	fi
    1.17  }
    1.18  function du2 {
    1.19 -  du -h --max-depth=2 --exclude=".?*" "$@"
    1.20 +	if [ "$*" = "" ] ; then
    1.21 +		du -h --max-depth=2 --exclude=".?*" "`pwd`"
    1.22 +	else
    1.23 +		du -h --max-depth=2 --exclude=".?*" "$@"
    1.24 +	fi
    1.25  }
    1.26  
    1.27  function psgrep {