Autocompletion of Julia scripts in Shell prompts

question
installation

#1

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.


#2

For bash, something like

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

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


#3

Perfect. Exactly what I was looking for.