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.
Method:
- Open Terminal.app
- Go to your home directory such as /Users/user.
- Open vim to create .inputrc file in home directory by running following command.
- vim .inputrc
- Add following lines to the file
- set completion-ignore-case on
- set show-all-if-ambiguous on
- TAB: menu-complete
- Save the file using "esc + :wq" in vim.
- Now open another tab to see the changes to tab completion in bash shell.
Comments
Post a Comment