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

Fix filename completion in bash autocompletion #8587

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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: 11 additions & 1 deletion scripts/bash-autocomplete/cbmc.sh.template
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ _cbmc_autocomplete()
fi

#if none of the above applies, offer directories and files that we can analyze
COMPREPLY=( $(compgen -G '*.class|*.jar|*.cpp|*.cc|*.c\+\+|*.ii|*.cxx|*.c|*.i|*.gb' -- $cur) )
_filedir -d
COMPREPLY+=( $(compgen -G "$cur*.c") )
COMPREPLY+=( $(compgen -G "$cur*.c\+\+") )
COMPREPLY+=( $(compgen -G "$cur*.cc") )
COMPREPLY+=( $(compgen -G "$cur*.class") )
COMPREPLY+=( $(compgen -G "$cur*.cpp") )
COMPREPLY+=( $(compgen -G "$cur*.cxx") )
COMPREPLY+=( $(compgen -G "$cur*.gb") )
COMPREPLY+=( $(compgen -G "$cur*.i") )
COMPREPLY+=( $(compgen -G "$cur*.ii") )
COMPREPLY+=( $(compgen -G "$cur*.jar") )
}
complete -F _cbmc_autocomplete cbmc
Loading