bash completion: suggesting long options rather than short options as they are more descriptive (not needed in fish and zsh) and adding --altlist

This commit is contained in:
Mattias Andrée 2012-08-19 20:14:46 +02:00
parent 285fbf3ff5
commit d9ada3be2f

View file

@ -5,7 +5,7 @@ _ponysay()
local cur prev words cword
_init_completion -n = || return
options='-v -h -l -f -W -q'
options='--version --help --list --altlist --pony --wrap --quote'
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
if [ $prev = "-f" ] || [ $prev = "--pony" ]; then