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
Nils Winkler 2015-03-23 07:37:50 +01:00
parent e800a684f9
commit d29d6df2f2
2 changed files with 37 additions and 29 deletions

View File

@ -61,7 +61,7 @@ _bash-it-comp()
return 0
;;
help)
local help_args="plugins aliases"
local help_args="plugins aliases completions"
COMPREPLY=( $(compgen -W "${help_args}" -- ${cur}) )
return 0
;;

View File

@ -285,6 +285,14 @@ _enable-thing ()
printf '%s\n' "$file_entity enabled."
}
_help-completions()
{
_about 'summarize all completions available in bash-it'
_group 'lib'
_bash-it-completions
}
_help-aliases()
{
_about 'shows help for all aliases, or a specific alias group'