summaryrefslogtreecommitdiffstats
path: root/Completion/Zsh/Command/_zsocket
blob: bf0298b17d33b504ed7c2d3a8993df49be30dc95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#compdef zsocket

_arguments -s -w -S -S -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 }'