From: Amand Tihon Date: Fri, 19 Aug 2011 12:03:54 +0000 (+0200) Subject: Add a "functions" snipplet. X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=commitdiff_plain;h=c45dc138f7af85babb21cdce889dbd7b80b74ea2 Add a "functions" snipplet. --- diff --git a/S51_functions b/S51_functions new file mode 100644 index 0000000..3452fdc --- /dev/null +++ b/S51_functions @@ -0,0 +1,6 @@ +#! /usr/bin/zsh + +du_by() { + find . -iname $1 -print0 | du --files0-from=- -hc | tail -n 1 +} +