From 4f2c4ef4bd14c52d0fabfbf061a65bc2aadfe138 Mon Sep 17 00:00:00 2001
From: Sebastian Achilles <s.achilles@fz-juelich.de>
Date: Mon, 7 Feb 2022 13:41:12 +0100
Subject: [PATCH] Add bash competition for easyconfigs from local dir but not
 robot search path

---
 bin/eb_bash_completion_local.bash | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 bin/eb_bash_completion_local.bash

diff --git a/bin/eb_bash_completion_local.bash b/bin/eb_bash_completion_local.bash
new file mode 100644
index 000000000..c85ca740b
--- /dev/null
+++ b/bin/eb_bash_completion_local.bash
@@ -0,0 +1,12 @@
+_eb()
+{
+    local cur prev quoted
+    _get_comp_words_by_ref cur prev
+    _quote_readline_by_ref "$cur" quoted
+
+	case $cur in 
+		--*) _optcomplete "$@"; return 0 ;;
+		*)  COMPREPLY=( $(compgen -f -X '!*.eb' -- $cur ) ) ;;
+	esac
+}
+complete -F _eb eb
-- 
GitLab