mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-22 03:40:47 +02:00
15 lines
384 B
Plaintext
15 lines
384 B
Plaintext
#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 }'
|