From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: [PATCH] _du: add support for Mac OS X
Date: Sat, 20 Apr 2013 10:18:02 +0900 [thread overview]
Message-ID: <E0D56733-F4B4-4B47-9779-C1713C6D2570@kba.biglobe.ne.jp> (raw)
2nd try
---
Completion/Unix/Command/_du | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/Completion/Unix/Command/_du b/Completion/Unix/Command/_du
index 9974d72..9ae6e9c 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]'
--
1.7.9.6 (Apple Git-31.1)
next reply other threads:[~2013-04-20 2:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-20 1:18 Jun T. [this message]
2013-04-20 9:59 ` Frank Terbeck
-- strict thread matches above, loose matches on Subject: below --
2013-04-19 17:04 Jun T.
2013-04-19 18:43 ` Frank Terbeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E0D56733-F4B4-4B47-9779-C1713C6D2570@kba.biglobe.ne.jp \
--to=takimoto-j@kba.biglobe.ne.jp \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).