X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=c206089abcd1f3fa583179d502452d113186a9b9;hb=c4f6b60d0c607b62d1bc3682a58ec82b893dd193;hp=eb3e2502d094d4f1f00bb0b3fdb53cfb49ccb033;hpb=8aeba642289b473f3fcc26eb63555c474294216f;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index eb3e250..c206089 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3260,43 +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 -} - -# % 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