Super User is a question and answer site for computer enthusiasts and power users. 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

Why does tab completion only work some of the time in OS X terminal? e.g. cd docuTab

For example, when I'm at /Users/ it works fine. But when I'm at ~/ it doesn't work at all.

Once inside ~/Documents/ it works again. What's the deal? I'm definitely typing enough to remove any ambiguity from the subfolders.

share|improve this question
1  
I've just tried in both and it works fine. Perhaps you're typing some UTF8 hidden characters, that are invisible but of which your shell (I assume bash) is aware ? Also beware that it's case sensitive (you mentioned cd docu). – Karolos Feb 11 '12 at 17:36
up vote 6 down vote accepted

Tab completion is case sensitive.

Your username is usually all lowercase, which is why cd username works in /Users, but not cd docu in ~ — the folder name is Documents, with an uppercase D.

If you want to change this behavior, add the following lines to your ~/.inputrc.

$if Bash
  set completion-ignore-case On
$endif

If you do not have an ~/.inputrc you can create one and add the above with this command:

echo "set completion-ignore-case On" >> ~/.inputrc
share|improve this answer
    
when i create the inputrc i have no permissions to modify it. how can i give myself permissions – Enkidu Aug 4 '14 at 13:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .