summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
authorEric Cook <llua@gmx.com>2015-09-20 20:36:09 -0400
committerMikael Magnusson <mikachu@gmail.com>2015-09-23 01:14:08 +0200
commit002d68525c9de1230565d1a1c317996635d39172 (patch)
tree957e5afb804a4dc4a6add23640e84ec1f3b9fcaf /Completion/Zsh
parent0f2f34363d24974dcdcb9aecb03df139969b3d18 (diff)
downloadzsh-002d68525c9de1230565d1a1c317996635d39172.tar.gz
zsh-002d68525c9de1230565d1a1c317996635d39172.tar.xz
zsh-002d68525c9de1230565d1a1c317996635d39172.zip
36571: Completion for zsocket and updated losetup's completion
Diffstat (limited to 'Completion/Zsh')
-rw-r--r--Completion/Zsh/Command/_zsocket14
1 files changed, 14 insertions, 0 deletions
diff --git a/Completion/Zsh/Command/_zsocket b/Completion/Zsh/Command/_zsocket
new file mode 100644
index 000000000..eeed9f1d8
--- /dev/null
+++ b/Completion/Zsh/Command/_zsocket
@@ -0,0 +1,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 }'