From: "Benjamin R. Haskell" <zsh@benizi.com>
To: Zsh Workers <zsh-workers@zsh.org>
Cc: <zsh@benizi.com>
Subject: [PATCH] Add completion for xclip command
Date: Sun, 22 Jan 2012 14:25:49 -0500 [thread overview]
Message-ID: <1327260349-5337-1-git-send-email-zsh@benizi.com> (raw)
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
reply other threads:[~2012-01-22 19:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1327260349-5337-1-git-send-email-zsh@benizi.com \
--to=zsh@benizi.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).