zsh-workers
 help / color / mirror / code / Atom feed
cdc52281d09f219a04c49ba772a6801aeb76fac3 blob 552 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 
#compdef zgetattr zsetattr zdelattr zlistattr

local state line expl ret=1 REPLY
local -a args privs

case $service in
zgetattr)
_arguments \
  '1:file:_files' \
  '2:attribute:->attrs' \
  '3:parameter'
;;
zsetattr)
_arguments \
  '1:file:_files' \
  '2:attribute:->attrs' \
  '3:value'
;;
zdelattr)
_arguments \
  '1:file:_files' \
  '2:attribute:->attrs'
;;
zlistattr)
_arguments \
  '1:file:_files' \
  '2:parameter'
;;
esac

if [[ $state = attrs ]]; then
  zlistattr $~line[1] REPLY 2> /dev/null
  _wanted attrs expl 'attribute' compadd $REPLY
fi
debug log:

solving cdc5228 ...
found cdc5228 in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).