Skip to content

Commit 2e5513a

Browse files
Add bash completition for easyconfigs from local dir but not robot search path
1 parent 14ed922 commit 2e5513a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

eb_bash_completion_local.bash

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
_eb()
2+
{
3+
local cur prev quoted
4+
_get_comp_words_by_ref cur prev
5+
_quote_readline_by_ref "$cur" quoted
6+
7+
case $cur in
8+
--*) _optcomplete "$@"; return 0 ;;
9+
*) COMPREPLY=( $(compgen -f -X '!*.eb' -- $cur ) ) ;;
10+
esac
11+
}
12+
complete -F _eb eb

0 commit comments

Comments
 (0)