about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorJun T <takimoto-j@kba.biglobe.ne.jp>2013-04-20 10:18:02 +0900
committerFrank Terbeck <ft@bewatermyfriend.org>2013-04-20 11:56:04 +0200
commit452aa5157a26959ed6d127d287d703e804b5e2c1 (patch)
tree5b62a539fcc3e73cb4fb09f14b1913b80df7fc4a /Completion/Unix
parent7514fe4a66a7ed45c0878a93eaad0bb56d500700 (diff)
downloadzsh-452aa5157a26959ed6d127d287d703e804b5e2c1.tar.gz
zsh-452aa5157a26959ed6d127d287d703e804b5e2c1.tar.xz
zsh-452aa5157a26959ed6d127d287d703e804b5e2c1.zip
31281: _du: add support for Mac OS X
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_du18
1 files changed, 18 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_du b/Completion/Unix/Command/_du
index 9974d72e9..9ae6e9cb3 100644
--- a/Completion/Unix/Command/_du
+++ b/Completion/Unix/Command/_du
@@ -47,6 +47,24 @@ if _pick_variant gnu=Free\ Soft unix --version /dummy/no-such-file; then
 
   return ret
 
+elif [[ "$OSTYPE" == darwin* ]]; then
+  _arguments -s -A "-*" \
+    '(-H -L -P)-H[follow symlinks on the command line]' \
+    '(-H -L -P)-L[follow all symlinks]' \
+    '(-H -L -P)-P[do not follow symlinks (default)]' \
+    '*-I+[ignore files/directories matching specified mask]:mask' \
+    '(-a -s -d)-a[display entry also for files (not just directories) in file hierarchy]' \
+    '(-a -s -d)-d+[display entry for directories up to specified depth]:depth' \
+    '(-a -s -d)-s[display entry only for files/directories specified on the command line]' \
+    '(-h -k -m -g)-h[human readable output]' \
+    '(-h -k -m -g)-k[use block size of 1K-byte]' \
+    '(-h -k -m -g)-m[use block size of 1M-byte]' \
+    '(-h -k -m -g)-g[use block size of 1G-byte]' \
+    '-c[display grand total]' \
+    '-r[notify about unreadable files/directories]' \
+    '-x[exclude directories on different file systems]' \
+    '*:file:_files'
+
 else
   # based on $OSTYPE = solaris2.8
   local xdev='[skip directories on different filesystems]'