zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Add completion for xclip command
@ 2012-01-22 19:25 Benjamin R. Haskell
  0 siblings, 0 replies; only message in thread
From: Benjamin R. Haskell @ 2012-01-22 19:25 UTC (permalink / raw)
  To: Zsh Workers; +Cc: zsh

From: "Benjamin R. Haskell" <zsh@benizi.com>

`xclip` is a utility for getting information in and out of the X11
clipboard and cut buffers.  The descriptions here were mostly pulled
from `xclip -help`
---
 Completion/Unix/Command/_xclip |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 Completion/Unix/Command/_xclip

diff --git a/Completion/Unix/Command/_xclip b/Completion/Unix/Command/_xclip
new file mode 100644
index 0000000..759251c
--- /dev/null
+++ b/Completion/Unix/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]'
-- 
1.7.6


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-22 19:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-22 19:25 [PATCH] Add completion for xclip command Benjamin R. Haskell

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).