Far*_*rid 12 autocomplete command-line-interface iterm2
假设我在我的根目录中,并且我有一个User可以cd进入的文件夹.在我的默认Mac终端中,我只需键入cd U+ tab,它就会自动填充到cd Users/.如何在iTerm2中使用它?
它曾经在iTerm2中运行得很好,但我必须更改某个禁用它的设置,我无法弄清楚如何将其恢复.
lee*_*lex 26
通过按cmd+ 激活iTerm2中的自动完成功能;
小智 12
当您在 Iterm2 中键入命令时自动建议 (我相信这就是您所指的内容)
Git 将 zsh-autosuggestions 插件克隆到 OhMyZsh 插件文件夹中。(或者如果在 Mac 上,则直接brew安装)
$ sudo git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
Run Code Online (Sandbox Code Playgroud)
完成后,将插件添加到 ~/.zshrc 文件的插件列表中。
plugins=(zsh-autosuggestions)
Run Code Online (Sandbox Code Playgroud)
小智 11
在 Iterm 2 中,您可以通过按command ?+激活自动完成;
小智 11
cmd + , - to enter preferences
click on keys tab
click on + in bottom left
click on area to record key and click tab key
then for the action click on select meny item and then on the next drop down select open autocompelte under the session section
I changed it using these settings:

您还可以启用自动命令完成(“视图”>“自动命令完成”),该功能会在您键入时显示一个包含命令完成建议的窗口。您必须首先启用 shell 集成,否则它将在菜单栏中显示为灰色。
https://iterm2.com/documentation-shell-integration.html