From ea425580408e9a01b0b05e98acb1177e7176b750 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 25 Sep 2016 14:04:20 +0200 Subject: zsh: Add ds (directory size) function Shows size of subfolders, largest at the bottom. Easy to explore with. --- tag-zsh/config/zsh/zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tag-zsh/config') diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc index 08ba28c2..b4db1f42 100644 --- a/tag-zsh/config/zsh/zshrc +++ b/tag-zsh/config/zsh/zshrc @@ -87,6 +87,10 @@ bindkey '\e^b' backward-argument bindkey '\e^f' forward-argument bindkey '\e^k' kill-argument +ds () { + du -hd1 $1 | sort -h +} + zle -C hist-complete complete-word _generic zstyle ':completion:hist-complete:*' completer _history bindkey '\e ' hist-complete -- cgit 1.4.1