summaryrefslogtreecommitdiff
path: root/Completion/X/Command
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-01-22 20:04:01 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-01-22 20:04:01 +0000
commit084103d30ef20bb8a7c866fd52d0caa448b21999 (patch)
treedb2aa8ee2c21fd6f25badb401448d55ec7bfcd3e /Completion/X/Command
parent0d15215d86737a93a7ee284bc8f25b19ecabbe7f (diff)
downloadzsh-084103d30ef20bb8a7c866fd52d0caa448b21999.tar.gz
zsh-084103d30ef20bb8a7c866fd52d0caa448b21999.zip
Ben: 30117: new xclip completion
Diffstat (limited to 'Completion/X/Command')
-rw-r--r--Completion/X/Command/.distfiles1
-rw-r--r--Completion/X/Command/_xclip14
2 files changed, 15 insertions, 0 deletions
diff --git a/Completion/X/Command/.distfiles b/Completion/X/Command/.distfiles
index 3b6dc49fa..c6835ea54 100644
--- a/Completion/X/Command/.distfiles
+++ b/Completion/X/Command/.distfiles
@@ -20,6 +20,7 @@ _urxvt
_vnc
_x_utils
_xauth
+_xclip
_xdvi
_xfig
_xloadimage
diff --git a/Completion/X/Command/_xclip b/Completion/X/Command/_xclip
new file mode 100644
index 000000000..759251c28
--- /dev/null
+++ b/Completion/X/Command/_xclip
@@ -0,0 +1,14 @@
+#compdef xclip
+
+_arguments \
+ '(-i -in -o -out)'{-i,-in}'[Read text into X selection]' \
+ '(-i -in -o -out)'{-o,-out}'[Print selection to standard out]' \
+ {-l,-loops}'[Number of selection requests to wait before exiting]:number:' \
+ {-d,-display}'[X display to connect to]:X11 display:' \
+ '(-)'{-h,-help}'[Usage information]' \
+ '(-selection)-selection[Selection to access]:selection:(primary secondary clipboard buffer-cut)' \
+ $'-noutf8[Use old Unicode, don\'t treat text as UTF-8]' \
+ '(-)-version[version information]' \
+ '(-quiet -verbose)-silent[Errors only, run in background]' \
+ $'(-silent -verbose)-quiet[Run in foreground, show what\'s happening]' \
+ '(-silent -quiet)-verbose[Running commentary]'