bash tab completion without variable expansion? bash tab completion without variable expansion? bash bash

bash tab completion without variable expansion?


You might try using zsh instead of bash. In zsh,

vim $i[tab]

expands $i to a relative path

(Also Oh My Zsh is great for customizing zsh)


I am not sure which other settings you use in your bash startup scripts, but for me the following bash command does the trick:

complete -r -v


Usingshopt -u progcompworked for me, after this the tab did not expand variables anymore. A shopt dochttps://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html