From 56ae875861ab260b80a030f50c4aff9f9dc8fff0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 13:32:39 +0200 Subject: Adding upstream version 2.14.2. Signed-off-by: Daniel Baumann --- etc/bash_completion.d/icinga2 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 etc/bash_completion.d/icinga2 (limited to 'etc/bash_completion.d/icinga2') diff --git a/etc/bash_completion.d/icinga2 b/etc/bash_completion.d/icinga2 new file mode 100644 index 0000000..5c49ab0 --- /dev/null +++ b/etc/bash_completion.d/icinga2 @@ -0,0 +1,17 @@ +_icinga2() +{ + local cur opts + opts="${COMP_WORDS[*]}" + cur="${COMP_WORDS[COMP_CWORD]}" + COMPREPLY=($(icinga2 --autocomplete $COMP_CWORD ${COMP_WORDS[*]} < /dev/null)) + case $COMPREPLY in + */|*=) + compopt -o nospace + ;; + esac + + return 0 +} + +complete -F _icinga2 icinga2 + -- cgit v1.2.3