summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_attr
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2018-04-07 15:12:57 +0200
committerAxel Beckert <abe@deuxchevaux.org>2018-04-07 15:12:57 +0200
commit6e1ab9aa550695ee7e3d467b4173c0b83ba7f759 (patch)
tree8fb7faa4364a7cbf1cba48296a5f537e13f2a8d9 /Completion/Unix/Command/_attr
parent5ad56a41f1ee2e61abca079f5ea8909f895ac2dd (diff)
parentf027f1d6e876708bc75d4217e1ca26898658d8d3 (diff)
downloadzsh-6e1ab9aa550695ee7e3d467b4173c0b83ba7f759.tar.gz
zsh-6e1ab9aa550695ee7e3d467b4173c0b83ba7f759.zip
Merge tag 'zsh-5.4.2-test-2' / 'upstream' branch into 'debian' branch
Test version 2 prior to zsh 5.5.
Diffstat (limited to 'Completion/Unix/Command/_attr')
-rw-r--r--Completion/Unix/Command/_attr21
1 files changed, 20 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_attr b/Completion/Unix/Command/_attr
index df1fb7da4..2030064dc 100644
--- a/Completion/Unix/Command/_attr
+++ b/Completion/Unix/Command/_attr
@@ -1,4 +1,4 @@
-#compdef attr getfattr setfattr
+#compdef attr getfattr setfattr xattr
case $service in
attr)
@@ -45,4 +45,23 @@ case $service in
'*:file:_files'
return
;;
+ # The Python xattr module ships with a utility called xattr which might appear
+ # on some systems; it is not entirely compatible with the Darwin variant, but
+ # does seem inspired by it, to the degree that this is probably close enough
+ xattr)
+ _arguments -s -S -A '-*' : \
+ '(: -)'{-h,--help}'[display help information]' \
+ '(-c -d -w)-l[display in long format]' \
+ '-r[act recursively]' \
+ '-s[act on symbolic links]' \
+ '(-w)-v[always display file name]' \
+ '(-c -d)-x[use hexademical format for value input and output]' \
+ '*: :_files' \
+ + '(op)' \
+ '(-l -x)-c[remove all attributes]' \
+ '(-l -x)-d[remove specified attribute]:attribute name' \
+ '-p[display value of specified attribute]:attribute name' \
+ '(-l -v)-w[set value of specified attribute]:attribute name: :attribute value'
+ return
+ ;;
esac