Merge pull request #430 from nwinkler/completion-help

Added support for `bash-it help completions` command.
pull/431/head
Nils Winkler 2015-03-23 08:20:41 +01:00
commit cbba9c16ef
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'