问题
Let's say I'm in my root directory, and I have a User folder that I can cd into. In my default Mac terminal, I can just type cd U + tab, and it autocompletes to cd Users/. How do I get this to work in iTerm2?
It used to work just fine in iTerm2, but I must have changed a setting somewhere that disabled it, and I cannot figure out how to get it back.
回答1:
Autocomplete in iTerm2 activates by pressing cmd + ;
回答2:
You can install bash-completion package to autocomplete by Tab key.
- Install bash-completion with brew
回答3:
In Iterm 2 , you can activate Autocomplete by pressing command ⌘ + ;
来源:https://stackoverflow.com/questions/44866682/how-to-enable-autocomplete-in-iterm2