From 453ba566097aeb6b4ea811f02858a06dc5549fd7 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Thu, 27 Sep 2007 11:47:23 +0000 Subject: 23814: fixes for Darwin. --- Completion/Unix/Command/_ls | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_ls') diff --git a/Completion/Unix/Command/_ls b/Completion/Unix/Command/_ls index e5ef1fe03..7680f9273 100644 --- a/Completion/Unix/Command/_ls +++ b/Completion/Unix/Command/_ls @@ -5,7 +5,7 @@ local arguments is_gnu _pick_variant -r is_gnu gnu=gnu unix --help -if [[ "$OSTYPE" = (netbsd*|freebsd*|openbsd*) && "$is_gnu" != gnu ]]; then +if [[ "$OSTYPE" = (netbsd*|freebsd*|openbsd*|darwin*) && "$is_gnu" != gnu ]]; then arguments=( '(-A)-a[list entries starting with .]' '(-a)-A[list all except . and ..]' @@ -54,6 +54,13 @@ if [[ "$OSTYPE" = (netbsd*|freebsd*|openbsd*) && "$is_gnu" != gnu ]]; then '*:files:_files' ) + if [[ "$OSTYPE" = (freebsd*|darwin*) ]]; then + arguments+=( + '-G[enable colorized output]' + '-H[follow symlinks on the command line]' + '-P[do not follow symlinks]' + ) + fi else arguments=( '(--all -a -A --almost-all)'{--all,-a}'[list entries starting with .]' -- cgit 1.4.1