Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bash Tab Completion Suggests Hidden SVN Files

Tags:

bash

svn

When using tab completion, I keep getting suggestions for .svn files, so, using ls, my output looks like this:

[spaceplace]$ ls src/
main/ .svn/ 
[spaceplace]$ ls src/
main/ .svn/ 
[spaceplace]$ ls src/
main/ .svn/ 
[spaceplace]$ ls src/main/
java/      resources/ .svn/      
[spaceplace]$ ls src/main/
java/      resources/ .svn/   

The .svn files don't show up when I just use ls, so I don't know why they show up when I use tab complete. The issue only seems to exist with the .svn files and no other hidden files, which seems weird. How can I get these files to not show up when I am using tab complete?

like image 474
fvrghl Avatar asked Jun 03 '13 18:06

fvrghl


1 Answers

I found out a way to do it; in my .bashrc I added the line bind 'set match-hidden-files off'. Now all the files beginning with "." don't show up unless you explicitly specify it.

like image 106
fvrghl Avatar answered Sep 28 '22 17:09

fvrghl