mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-03-02 05:00:30 -05:00
Implemented in a dedicated Icinga Web CLI command, bash config snippet is therefore pretty compact. fixes #5520
13 lines
226 B
Text
13 lines
226 B
Text
|
|
_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
|
|
|
|
|