aboutsummaryrefslogtreecommitdiff
path: root/completion
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-19 03:30:11 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-19 03:30:11 +0200
commitafcc9dc82981e6b334e5b4d8e79e19925ca9600e (patch)
treed65b1dfbb9a49b921f3a297f0eec51503caeb45d /completion
parent50a53b99aa368b2d69aea5eb6545fb5fcd8aa2dd (diff)
downloadponysay-afcc9dc82981e6b334e5b4d8e79e19925ca9600e.tar.gz
ponysay-afcc9dc82981e6b334e5b4d8e79e19925ca9600e.tar.bz2
ponysay-afcc9dc82981e6b334e5b4d8e79e19925ca9600e.zip
info update + bash completion improvement (long options are suggested)
Diffstat (limited to 'completion')
-rw-r--r--completion/bash-completion.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/completion/bash-completion.sh b/completion/bash-completion.sh
index 11b99ea..ca6755e 100644
--- a/completion/bash-completion.sh
+++ b/completion/bash-completion.sh
@@ -8,15 +8,15 @@ _ponysay()
options='-v -h -l -f -W -q'
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
- if [ $prev = "-f" ]; then
+ if [ $prev = "-f" ] || [ $prev = "--pony" ]; then
ponies=$('/usr/bin/ponysay.py' --onelist)
COMPREPLY=( $( compgen -W "$ponies" -- "$cur" ) )
- elif [ $prev = "-q" ]; then
+ elif [ $prev = "-q" ] || [ $prev = "--quote" ]; then
quoters=$('/usr/bin/ponysay.py' --quoters)
COMPREPLY=( $( compgen -W "$quoters" -- "$cur" ) )
- elif [ $prev = "-W" ]; then
+ elif [ $prev = "-W" ] || [ $prev = "--wrap" ]; then
cols=$(( `stty size | cut -d ' ' -f 2` - 10 ))
COMPREPLY=( $cols $(( $cols / 2 )) 100 60 )