How to enable autocomplete in iTerm2

浪子不回头ぞ 提交于 2019-12-21 03:50:58

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!