mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-11 23:36:44 +01:00
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:
parent
285fbf3ff5
commit
d9ada3be2f
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ _ponysay()
|
||||||
local cur prev words cword
|
local cur prev words cword
|
||||||
_init_completion -n = || return
|
_init_completion -n = || return
|
||||||
|
|
||||||
options='-v -h -l -f -W -q'
|
options='--version --help --list --altlist --pony --wrap --quote'
|
||||||
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
|
||||||
|
|
||||||
if [ $prev = "-f" ] || [ $prev = "--pony" ]; then
|
if [ $prev = "-f" ] || [ $prev = "--pony" ]; then
|
||||||
|
|
Loading…
Reference in a new issue