How to make bash quit tab autocompleting hidden directories

Posted by Kristopher Micinski on Ask Ubuntu See other posts from Ask Ubuntu or by Kristopher Micinski
Published on 2012-09-20T01:35:55Z Indexed on 2012/09/20 3:51 UTC
Read the original article Hit count: 492

Most of the time, I don't need autocompletes for my hidden directories. In fact, that's the point of them being hidden! However, annoyingly, bash takes these directories into account when considering tab autocompletion. This is particularly annoying when I have the following scenario: a .svn foler along with a single folder that I want to traverse into by simply pushing tab. (This typically comes up with deep Java packages...) Is there any way to change the default behavior? Worst case scenario I have to type '.' before tab, which seems like a no brainer for my usability.

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about bash