From: Frank Terbeck Date: Mon, 28 Nov 2011 21:27:23 +0000 (+0100) Subject: zshrc: Remove dirspace X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=c4f6b60d0c607b62d1bc3682a58ec82b893dd193;p=grml-etc-core.git zshrc: Remove dirspace Signed-off-by: Frank Terbeck --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index cf3d759..c206089 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3260,30 +3260,6 @@ refunc() { } compdef _functions refunc -# a small check to see which DIR is located on which server/partition. -# stolen and modified from Sven's zshrc.forall -#f5# Report diskusage of a directory -dirspace() { - emulate -L zsh - if [[ -n "$1" ]] ; then - for dir in "$@" ; do - if [[ -d "$dir" ]] ; then - ( cd $dir; echo "-<$dir>"; du -shx .; echo); - else - echo "warning: $dir does not exist" >&2 - fi - done - else - for dir in $path; do - if [[ -d "$dir" ]] ; then - ( cd $dir; echo "-<$dir>"; du -shx .; echo); - else - echo "warning: $dir does not exist" >&2 - fi - done - fi -} - #f5# Set all ulimit parameters to \kbd{unlimited} allulimit() { ulimit -c unlimited