From 2e5513a9ba7fd7c0ef8760ddaf8d1771e910fc37 Mon Sep 17 00:00:00 2001 From: Sebastian Achilles Date: Sun, 6 Feb 2022 13:28:36 +0100 Subject: [PATCH] Add bash completition for easyconfigs from local dir but not robot search path --- eb_bash_completion_local.bash | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 eb_bash_completion_local.bash diff --git a/eb_bash_completion_local.bash b/eb_bash_completion_local.bash new file mode 100644 index 0000000000..c85ca740b8 --- /dev/null +++ b/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