Without this .bashrc in Ubuntu under WSL, I can type this:-
tar xvfz ~/Dow<tab></tab>
and pressing the <tab> button auto-completes the path I want (which in my case is a symlink), and turns into this all by itself:-</tab>
tar xvfz ~/Downloads/
FYI - this is my symlink:-
`$ dir ~/Downloads
lrwxrwxrwx 1 cnd cnd 27 Aug 30 13:50 /home/cnd/Downloads -> /mnt/c/Users/cnd/Downloads//`
Unfortunately, with this .bashrc active - the tab button no longer does anything for that "tar" command (although it does work OK if I use other commands, like this:-
dir ~/Dow<tab></tab>
...somewhere in whatever smartness understands what the "tar" command is looking for, something in this .bashrc greatness has tripped it up...
I'm away from my office for a few weeks... if this issue is still open when I get back, I'll see if I can find the problem and report back the fix.
obviously I mean just a single tab in there - sorceforge has mangled what I typed and added < /tab > itself...
I will look into this.
After poking around, I think the issue might be one of the bash_completion files that get automatically included.
The bash completion scripts are sourced from:
These can be installed from many different places including the main repositories. Some distros have one of these by default.
I believe your issue might be coming from one of these files above. Perhaps, in the somewhat near future, I can provide an over-ride to skip including these.
I hope that helps!
I added a new option to skip bash completion imports. This way you can skip it altogether or manually import your own.
For more information, see "Environment Variables and Extreme Ultimate .bashrc File Settings" in the "Files" section of this project.