From: xf0r3m Date: Fri, 22 May 2026 13:13:34 +0000 (+0200) Subject: Rozpoczęcie tworzenia plików dla bash-complete. X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=9257f8bd2ca5ba154ce53440a7e59928e742f885;p=immudex.git Rozpoczęcie tworzenia plików dla bash-complete. --- diff --git a/immudex-complete-project/complete/immudex-branch b/immudex-complete-project/complete/immudex-branch new file mode 100644 index 0000000..23eeafa --- /dev/null +++ b/immudex-complete-project/complete/immudex-branch @@ -0,0 +1,19 @@ +# immudex-branch completion -*- shell-script -*- + +idx_simple_options_complete() +{ + local cur; + + COMPREPLY=(); + cur=${COMP_WORDS[COMP_CWORD]}; + + if [ $COMP_CWORD -eq 1 ]; then + COMPREPLY=( $(compgen -W '-h -v' -- $cur) ); + elif [ $COMP_CWORD -eq 2 ]; then + return 0; + fi + return 0; +} && + complete -F idx_simple_options_complete immudex-branch + +# ex: filetype=sh