aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-10-11 22:47:39 +0200
committerMattias Andrée <maandree@operamail.com>2012-10-11 22:47:39 +0200
commit30dfacb70b99f758bc4bc3a61b1501fa0ef29aac (patch)
treee301292a635c67dea8da11150f9d43c74ff3a660
parentbb5e26b8d84d83b64cd4f63bb7009ecb6d55c582 (diff)
downloadponysay-30dfacb70b99f758bc4bc3a61b1501fa0ef29aac.tar.gz
ponysay-30dfacb70b99f758bc4bc3a61b1501fa0ef29aac.tar.bz2
ponysay-30dfacb70b99f758bc4bc3a61b1501fa0ef29aac.zip
shell completion update
-rw-r--r--completion/bash-completion.sh3
-rw-r--r--completion/fish-completion.fish2
2 files changed, 3 insertions, 2 deletions
diff --git a/completion/bash-completion.sh b/completion/bash-completion.sh
index 4f59a4a..e9c284c 100644
--- a/completion/bash-completion.sh
+++ b/completion/bash-completion.sh
@@ -5,7 +5,8 @@ _ponysay()
local cur prev words cword
_init_completion -n = || return
- options='--version --help --list --altlist --pony --wrap --quote --balloonlist --balloon --file ++file ++pony ++list ++altlist'
+ options="--version --help --list --altlist --pony --wrap --quote --balloonlist --balloon --file ++file ++pony ++list ++altlist --all ++all"
+ options="$options --256-colours --tty-colours --kms-colours"
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
if [ $prev = "-f" ] || [ $prev = "--pony" ] || [ $prev = "--file" ]; then
diff --git a/completion/fish-completion.fish b/completion/fish-completion.fish
index 68e013a..044dd78 100644
--- a/completion/fish-completion.fish
+++ b/completion/fish-completion.fish
@@ -9,7 +9,7 @@ set -g quoters ('/usr/bin/ponysay' --quoters)
set -g balloons ('/usr/bin/ponysay' --balloonlist)
-## TODO: update with options [see info manual]: +l +L ++list ++altlist ++file --file ++pony
+## TODO: update with options [see info manual]: +l +L ++list ++altlist ++file --file ++pony {-A, +A, -V, -K, -X}(with alternative)
complete --command ponysay --short-option h --long-option help --description 'help of ponysay'
complete --command ponysay --short-option v --long-option version --description 'version of ponysay'
complete --command ponysay --short-option l --long-option list --description 'list pony names'