summary refs log tree commit diff
path: root/Completion/Zsh/Command/_zsocket
blob: eeed9f1d888f67a489158bdc8b20665a3d583a74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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 }'