How to enable autocomplete in iTerm2
You can install bash-completion
package to autocomplete by Tab key.
- Install
bash-completion
withbrew
Steps to add a keybinding for the TAB key:
- CMD + , to enter preferences
- open tab Keys
- in bottom left: add a Key Binding by clicking on the "+" button
- click on area to record key
- hit TAB key to record it
Then in column Action click on "Select Menu Item" and then on the next drop down select "Ppen Autocomplete" under the session section.
I changed it using these settings:
Autocomplete in iTerm2 activates by pressing cmd
+ ;