diff options
author | Pablo Lezaeta <prflr88@gmail.com> | 2012-08-22 18:10:28 -0400 |
---|---|---|
committer | Pablo Lezaeta <prflr88@gmail.com> | 2012-08-22 18:10:28 -0400 |
commit | d67b95bfbbd77a2261b7dbb05e7a69ea335d5be2 (patch) | |
tree | 9c3e16b4ebd7b013b78dd72d7603dbb5b03be70f /completion/bash-completion.sh | |
parent | ab9a3292a8b6ff40c3d1eded40bae2a29d9b42db (diff) | |
parent | 4fcd0b284ff296b41e08056c2dbf35de614e0320 (diff) | |
download | ponysay-d67b95bfbbd77a2261b7dbb05e7a69ea335d5be2.tar.gz ponysay-d67b95bfbbd77a2261b7dbb05e7a69ea335d5be2.tar.bz2 ponysay-d67b95bfbbd77a2261b7dbb05e7a69ea335d5be2.zip |
Added mising version info to texinfo
Diffstat (limited to 'completion/bash-completion.sh')
-rw-r--r-- | completion/bash-completion.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/completion/bash-completion.sh b/completion/bash-completion.sh index d790786..62e1d40 100644 --- a/completion/bash-completion.sh +++ b/completion/bash-completion.sh @@ -5,17 +5,25 @@ _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 --file ++file ++pony ++list ++altlist' COMPREPLY=( $( compgen -W "$options" -- "$cur" ) ) - if [ $prev = "-f" ] || [ $prev = "--pony" ]; then + if [ $prev = "-f" ] || [ $prev = "--pony" ] || [ $prev = "--file" ]; then ponies=$('/usr/bin/ponysay' --onelist) COMPREPLY=( $( compgen -W "$ponies" -- "$cur" ) ) + elif [ $prev = "-F" ] || [ $prev = "++pony" ] || [ $prev = "++file" ]; then + extraponies=$('/usr/bin/ponysay' ++onelist) + COMPREPLY=( $( compgen -W "$extraponies" -- "$cur" ) ) + elif [ $prev = "-q" ] || [ $prev = "--quote" ]; then 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 ) |