Fixed "bash-it help aliases" completion - it will now show the available aliases
parent
298b9c6455
commit
c786c14859
|
|
@ -73,9 +73,14 @@ _bash-it-comp()
|
|||
return 0
|
||||
;;
|
||||
help)
|
||||
if [ x"${prev}" == x"aliases" ]; then
|
||||
_bash-it-comp-list-available aliases
|
||||
return 0
|
||||
else
|
||||
local help_args="plugins aliases completions migrate update"
|
||||
COMPREPLY=( $(compgen -W "${help_args}" -- ${cur}) )
|
||||
return 0
|
||||
fi
|
||||
;;
|
||||
update | search | migrate)
|
||||
return 0
|
||||
|
|
@ -105,16 +110,6 @@ _bash-it-comp()
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
aliases)
|
||||
prevprev="${COMP_WORDS[COMP_CWORD-2]}"
|
||||
|
||||
case "${prevprev}" in
|
||||
help)
|
||||
_bash-it-comp-list-available aliases
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
|
|
|
|||
Loading…
Reference in New Issue