Thomas Gelf 3008527b41 Autocompletion for the BASH
Implemented in a dedicated Icinga Web CLI command, bash config snippet
is therefore pretty compact.

fixes #5520
2014-01-22 11:45:42 +00:00

14 lines
226 B
Plaintext

_icingaweb_completion()
{
local cur opts
opts="${COMP_WORDS[*]}"
cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=($($opts --autocomplete --autoindex $COMP_CWORD))
return 0
}
complete -F _icingaweb_completion icingaweb