Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add bash completion for easyconfigs from local dir but not robot search path #3953

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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