Added support for `bash-it help completions` command.
It's showing the same output as `bash-it show completions`, to keep things simple.pull/430/head
parent
e800a684f9
commit
d29d6df2f2
|
|
@ -61,7 +61,7 @@ _bash-it-comp()
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
help)
|
help)
|
||||||
local help_args="plugins aliases"
|
local help_args="plugins aliases completions"
|
||||||
COMPREPLY=( $(compgen -W "${help_args}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "${help_args}" -- ${cur}) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
|
|
@ -285,6 +285,14 @@ _enable-thing ()
|
||||||
printf '%s\n' "$file_entity enabled."
|
printf '%s\n' "$file_entity enabled."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_help-completions()
|
||||||
|
{
|
||||||
|
_about 'summarize all completions available in bash-it'
|
||||||
|
_group 'lib'
|
||||||
|
|
||||||
|
_bash-it-completions
|
||||||
|
}
|
||||||
|
|
||||||
_help-aliases()
|
_help-aliases()
|
||||||
{
|
{
|
||||||
_about 'shows help for all aliases, or a specific alias group'
|
_about 'shows help for all aliases, or a specific alias group'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue