In my Working Directory I have 3 files and directories names: Applications, Application, Appendix.txt When I am trying to do AutoComplete by hitting tab it misbehaves

I type App and hit tab, AutoComplete gives me Applications instead of stopping and allowing me to choose one of the three entries (when hitting another tab).

What can I do to fix this issue?

  • Q1: Are you using Apple's built-in Terminal or something else? – MMB Jan 15 at 7:56
  • Q2: Which shell are you using? bash or something else? – MMB Jan 15 at 8:31
  • Q3: Do you have any customization to your shell config (ie .bash_profile or .bashrc)? – MMB Jan 15 at 8:31
  • Hello, Q1: Yes Apple's built-in Terminal. Q2: using bash Q3: Yes, but it was long time ago, It was working just fine until today. – hamza belmellouki Jan 15 at 13:09

Great, I found the answer to this issue. Anyway, all you have to do is to edit a file called .inputrc in the home directory ~.

So here are the steps:

nano ~/.inputrc

In the file Delete the following line: TAB: menu-complete.

The file should contain only the following lines:

set completion-ignore-case on
set show-all-if-ambiguous on

Then restart the terminal.

And voilà.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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