summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Martin <phy1729@gmail.com>2016-09-07 23:19:04 +0200
committerOliver Kiddle <opk@zsh.org>2016-09-07 23:19:04 +0200
commit1fe962cbfdd82b2528d1214e997d229a96a6ddb9 (patch)
tree91ed6fd4b847756f3161fd433fab620fc8a7ac48
parent48c31e21d311d83384dcf21c20a3f5834b4b9425 (diff)
downloadzsh-1fe962cbfdd82b2528d1214e997d229a96a6ddb9.tar.gz
zsh-1fe962cbfdd82b2528d1214e997d229a96a6ddb9.zip
39209: Update options
-rw-r--r--ChangeLog3
-rw-r--r--Completion/BSD/Command/_chflags11
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c2d0193a3..727ccadfb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2016-09-07 Oliver Kiddle <opk@zsh.org>
+ 39209: Matthew Martin: Completion/BSD/Command/_chflags:
+ Update options
+
39208: Matthew Martin: Completion/BSD/Command/_chflags:
Update flags
diff --git a/Completion/BSD/Command/_chflags b/Completion/BSD/Command/_chflags
index 726d0fddc..43042bee4 100644
--- a/Completion/BSD/Command/_chflags
+++ b/Completion/BSD/Command/_chflags
@@ -58,17 +58,22 @@ if [[ $OSTYPE = (darwin|dragonfly|freebsd|netbsd)* ]]; then
usparse 'sparse file' \
usystem 'DOS, Windows and CIFS system'
+fi
+
+if [[ $OSTYPE = (darwin|dragonfly|freebsd)* ]]; then
args=(
"-f[don't display diagnostic messages]"
- '-h[act on symlinks]'
'-v[verbose output]'
)
fi
-_arguments -s -A "-*" $args \
+_arguments -s -A "-*" : $args \
+ - opth \
+ '-h[act on symlinks]' \
+ - optR \
+ '-R[recurse directories]' \
'(-L -P)-H[follow symlinks on the command line (specify with -R)]' \
'(-H -P)-L[follow all symlinks (specify with -R)]' \
'(-L -H)-P[do not follow symlinks (specify with -R)]' \
- '-R[recurse directories]' \
':file flag:_values -s , "file flags" $flags[@]' \
'*:file:_files "$own"'