Autocompletion of Julia scripts in Shell prompts

By any chance do you have a workaround in Bash for autocompleting Julia scripts upon pressing TAB?

My current system installation of Julia is a simple symbolic link to the binary built from the sources, and I am not sure how I could make julia foo[TAB] autocomplete to julia foo_script.jl.

For bash, something like

complete -f -X '!*.jl' julia

would restrict completion to .jl files, if that is what you are after.

3 Likes

Perfect. Exactly what I was looking for.