]> gitweb.morketsmerke.org Git - immudex.git/commitdiff
Rozpoczęcie tworzenia plików dla bash-complete.
authorxf0r3m <jakubstasinski@protonmail.com>
Fri, 22 May 2026 13:13:34 +0000 (15:13 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Fri, 22 May 2026 13:13:34 +0000 (15:13 +0200)
immudex-complete-project/complete/immudex-branch [new file with mode: 0644]

diff --git a/immudex-complete-project/complete/immudex-branch b/immudex-complete-project/complete/immudex-branch
new file mode 100644 (file)
index 0000000..23eeafa
--- /dev/null
@@ -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