1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-07 11:41:16 +02:00
zsh/Completion/Zsh/Command/_zsocket

14 lines
384 B
Text

#compdef zsocket
_arguments -s -w -A "-*" \
'-v[verbose output]' \
'-d[target file descriptor]:fd:_file_descriptors' \
- outbound \
'1: :_files' \
- listen \
'-l[open a socket listening]' \
'1: :_files' \
- accept \
'-a[accept an incoming connection]' \
'-t[return if no incoming connections are pending]' \
'1:fd:{ (( words[(I)-*a*] )) && _file_descriptors }'