How to enable Tab Completion in Mac OS X Terminal

  • (0 votes)
  • Written by 
  • Sunday, 18 October 2015 17:44

Launch Terminal and be in the home directory to get started:

  • Using emacs, nano, vi, or whatever your favorite text editor is to edit .inputrc, we’ll use nano for the walkthrough:

nano .inputrc

  • Paste in the following three rules on unique lines:

set completion-ignore-case on
set show-all-if-ambiguous on
TAB: menu-complete

  • Hit Control+O to save changes to .inputrc followed by control+X to quit
  • Open a new Terminal window or tab, or type “login” to open a new session with the rules in effect
  • Start typing a command, path, or something else and hit the Tab key to see the improvements firsthand
2254 Read Last modified on Sunday, 22 October 2017

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.