From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 967 invoked by alias); 20 Apr 2013 02:25:43 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31281 Received: (qmail 7446 invoked from network); 20 Apr 2013 02:25:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at spf01.biglobe.ne.jp designates 133.205.19.69 as permitted sender) X-Biglobe-Sender: From: "Jun T." Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: [PATCH] _du: add support for Mac OS X Message-Id: Date: Sat, 20 Apr 2013 10:18:02 +0900 To: "zsh-workers@zsh.org" Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) 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=3DFree\ Soft unix --version = /dummy/no-such-file; then =20 return ret =20 +elif [[ "$OSTYPE" =3D=3D 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 =3D solaris2.8 local xdev=3D'[skip directories on different filesystems]' --=20 1.7.9.6 (Apple Git-31.1)