Added support for bash-it help completions command.

It's showing the same output as `bash-it show completions`,
to keep things simple.
This commit is contained in:
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

@@ -115,7 +115,7 @@ _bash-it-describe ()
_param '3: file_type'
_param '4: column_header'
_example '$ _bash-it-describe "plugins" "a" "plugin" "Plugin"'
subdirectory="$1"
preposition="$2"
file_type="$3"
@@ -176,7 +176,7 @@ _disable-thing ()
_param '2: file_type'
_param '3: file_entity'
_example '$ _disable-thing "plugins" "plugin" "ssh"'
subdirectory="$1"
file_type="$2"
file_entity="$3"
@@ -244,8 +244,8 @@ _enable-thing ()
_param '1: subdirectory'
_param '2: file_type'
_param '3: file_entity'
_example '$ _enable-thing "plugins" "plugin" "ssh"'
_example '$ _enable-thing "plugins" "plugin" "ssh"'
subdirectory="$1"
file_type="$2"
file_entity="$3"
@@ -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'