How to add tab completion in Apple OS X

Tab completion in Linux is a very useful feature. On OS X the tab completion can be enabled as well. The tab completion can be enabled on OS X by adding few lines to .inputrc file.

  1. Open
  2. Go to your home directory such as  /Users/user.
  3. Open vim to create .inputrc file in home directory by running following command.
    • vim .inputrc
  4. Add following lines to the file
    • set completion-ignore-case on
    • set show-all-if-ambiguous on
    • TAB: menu-complete
  5. Save the file using "esc + :wq" in vim.
  6. Now open another tab to see the changes to tab completion in bash shell.


Popular posts from this blog

How to disable USB ports on Mac OS X Mavericks, Yosemite or El Capitan ?