X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=2aa96d9eebf499f0b4b875e0a2b597cb4a8c560d;hb=d2bf4cab7ce5916e036c510d8002f07890f4e461;hp=c5eb61f1b6fa50afcedd0bb35705edd88123fb9e;hpb=e72da8d3551e225270c3a33f6a8532fe78dd71b8;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index c5eb61f..2aa96d9 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3261,43 +3261,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 -} - -# % slow_print `cat /etc/passwd` -#f5# Slowly print out parameters -slow_print() { - for argument in "$@" ; do - for ((i = 1; i <= ${#1} ;i++)) ; do - print -n "${argument[i]}" - sleep 0.08 - done - print -n " " - done - print "" -} - #f5# Set all ulimit parameters to \kbd{unlimited} allulimit() { ulimit -c unlimited