Skip to content

Commit

Permalink
Merge pull request #3953 from SebastianAchilles/sa-bash-completion
Browse files Browse the repository at this point in the history
Add bash completion for easyconfigs from local dir but not robot search path
  • Loading branch information
bartoldeman authored Feb 11, 2022
2 parents 1b28735 + 2e5513a commit 3a74b47
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions eb_bash_completion_local.bash
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3a74b47

Please sign in to comment.