aboutsummaryrefslogtreecommitdiff
path: root/completion
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-05-12 02:19:59 +0200
committerMattias Andrée <maandree@operamail.com>2012-05-12 02:19:59 +0200
commita3677eae4affbe53430084f95b8d111a1cbd6245 (patch)
treec28eedbdb74d055ac4fd992ef96ad3328778639d /completion
parentfc2e89f44ea00e2c2082056426c7ef5793caa6c7 (diff)
downloadponysay-a3677eae4affbe53430084f95b8d111a1cbd6245.tar.gz
ponysay-a3677eae4affbe53430084f95b8d111a1cbd6245.tar.bz2
ponysay-a3677eae4affbe53430084f95b8d111a1cbd6245.zip
From ponysay-git in AUR by "gtmanfred" with adaption to [erkin]'s last push, and uninstall rutine
Diffstat (limited to 'completion')
-rw-r--r--completion/zsh-completion.zsh11
1 files changed, 11 insertions, 0 deletions
diff --git a/completion/zsh-completion.zsh b/completion/zsh-completion.zsh
new file mode 100644
index 0000000..26116d2
--- /dev/null
+++ b/completion/zsh-completion.zsh
@@ -0,0 +1,11 @@
+#compdef ponysay
+_shortopts=(
+ '-v[Show version and exit]'
+ '-h[Show this help and exit]'
+ '-l[list ponyfiles]'
+ '-f[Select a pony (either a filename or a ponyname]: :_path_files -W "/usr/share/ponies" -g "*(\:r)"'
+ '-W[The screen column where the message should be wrapped]'
+ )
+_arguments -s : \
+ "$_shortopts[@]"
+