]> git.alrj.org Git - zsh.d.git/commitdiff
Add a "functions" snipplet.
authorAmand Tihon <amand.tihon@iba-group.com>
Fri, 19 Aug 2011 12:03:54 +0000 (14:03 +0200)
committerAmand Tihon <amand.tihon@iba-group.com>
Fri, 19 Aug 2011 12:03:54 +0000 (14:03 +0200)
S51_functions [new file with mode: 0644]

diff --git a/S51_functions b/S51_functions
new file mode 100644 (file)
index 0000000..3452fdc
--- /dev/null
@@ -0,0 +1,6 @@
+#! /usr/bin/zsh
+
+du_by() {
+  find . -iname $1 -print0 | du --files0-from=- -hc | tail -n 1
+}
+