Search code examples
macosterminal

Mac Terminal Auto Complete


Usually on a Unix/Linux terminal when you press Tab it will auto-complete until there are several options, and then it will list the options below for you to select. For example:

cd he
helpFolder/ helpMe/ heIsThere/
cd help

With the Mac terminal, it forces you to press it twice to see options. I wondering if it's possible to change that setting to one Tab press?


Solution

  • Put this in your ~/.inputrc:

    set show-all-if-ambiguous on
    

    You'll need to restart your shell (for example by opening a new terminal window or typing exec /bin/bash).