Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 14 down vote accepted

Just add this line to your ~/.bashrc (if you don't have one, create it):

bind 'set match-hidden-files off'

And bash-completion should behave the way you want.

There are also many other options you might want to tweak in bash-completion. To see a complete list, read the manual ;)

share|improve this answer
Great! Will accept after nine minutes, did not know that this was an option.. – Kristopher Micinski Sep 20 '12 at 1:42
You can also put set match-hidden-files off in your .inputrc if you have one. – 0942v8653 May 9 '15 at 16:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.