aboutsummaryrefslogtreecommitdiff
path: root/completion/bash-completion.sh
diff options
context:
space:
mode:
Diffstat (limited to 'completion/bash-completion.sh')
-rw-r--r--completion/bash-completion.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/completion/bash-completion.sh b/completion/bash-completion.sh
index d790786..72cafcb 100644
--- a/completion/bash-completion.sh
+++ b/completion/bash-completion.sh
@@ -5,7 +5,7 @@ _ponysay()
local cur prev words cword
_init_completion -n = || return
- options='--version --help --list --altlist --pony --wrap --quote'
+ options='--version --help --list --altlist --pony --wrap --quote --balloonlist --balloon'
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
if [ $prev = "-f" ] || [ $prev = "--pony" ]; then
@@ -16,6 +16,10 @@ _ponysay()
quoters=$('/usr/bin/ponysay' --quoters)
COMPREPLY=( $( compgen -W "$quoters" -- "$cur" ) )
+ elif [ $prev = "-b" ] || [ $prev = "--balloon" ]; then
+ balloons=$('/usr/bin/ponysay' --balloonlist)
+ COMPREPLY=( $( compgen -W "$balloons" -- "$cur" ) )
+
elif [ $prev = "-W" ] || [ $prev = "--wrap" ]; then
cols=$(( `stty size | cut -d ' ' -f 2` - 10 ))
COMPREPLY=( $cols $(( $cols / 2 )) 100 60 )