Skip to content

Commit

Permalink
zshrc: Remove dirspace
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
  • Loading branch information
ft authored and mika committed Dec 6, 2011
1 parent 1130de3 commit d2bf4ca
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions etc/zsh/zshrc
Expand Up @@ -3261,30 +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
}

#f5# Set all ulimit parameters to \kbd{unlimited}
allulimit() {
ulimit -c unlimited
Expand Down

0 comments on commit d2bf4ca

Please sign in to comment.