summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_attr
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2004-03-01 12:22:51 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2004-03-01 12:22:51 +0000
commit8bf68849c43e026765a54162f9f1671bafb73d91 (patch)
treefb28c500c45256b0d69051dd061ce2b08c655cc2 /Completion/Unix/Command/_attr
parent19505: compilation with NTTYDISC defined was broken. (diff)
downloadzsh-8bf68849c43e026765a54162f9f1671bafb73d91.tar
zsh-8bf68849c43e026765a54162f9f1671bafb73d91.tar.gz
zsh-8bf68849c43e026765a54162f9f1671bafb73d91.tar.bz2
zsh-8bf68849c43e026765a54162f9f1671bafb73d91.tar.lz
zsh-8bf68849c43e026765a54162f9f1671bafb73d91.tar.xz
zsh-8bf68849c43e026765a54162f9f1671bafb73d91.tar.zst
zsh-8bf68849c43e026765a54162f9f1671bafb73d91.zip
19507: new completions
Diffstat (limited to 'Completion/Unix/Command/_attr')
-rw-r--r--Completion/Unix/Command/_attr48
1 files changed, 48 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_attr b/Completion/Unix/Command/_attr
new file mode 100644
index 000000000..c7ca1b850
--- /dev/null
+++ b/Completion/Unix/Command/_attr
@@ -0,0 +1,48 @@
+#compdef attr getfattr setfattr
+
+case $service in
+ attr)
+ local -a list
+ [[ $OSTYPE = irix* ]] &&
+ list=( '(-g -s -r -V)-l[list extended attributes associated with file]' )
+ _arguments -s -S "$list[@]" \
+ '(-l -r -s -V)-g[get extended attribute for file]:attribute name' \
+ '(-l -g -s -q -V)-r[remove given attribute from file]:attribute name' \
+ '(-l -g -r)-s[set named attribute for file]:attribute name' \
+ '(-r)-q[quiet output]' \
+ '(-g -r)-V[specify value of attribute]:value' \
+ '-L[dereference symbolic links]' \
+ '-R[operator in the root attribute namespace]' \
+ '1:file:_files'
+ return
+ ;;
+ getfattr)
+ _arguments -s -S \
+ '(-d --dump -n --name)'{-n+,--name=}'[dump the value of the named extended attribute]' \
+ '(-n --name -d --dump)'{-d,--dump}'[dump the values of all extended attributes]' \
+ '(-e --encoding)'{-e+,--encoding=}'[encode values after retrieving them]:encoding:(text hex base64)' \
+ '(-h --no-derference)'{-h,--no-dereference}'[do not follow symbolic links]' \
+ '(-m --match)'{-m+,--match=}'[only include attributes with names matching regex]:regular expression' \