ZSH 在选项卡上突出显示 [英] ZSH highlight on tab
本文介绍了ZSH 在选项卡上突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直听到有关 zsh 的一个功能是,它会在您浏览可能选择的列表时突出显示您的选择.比如选择一个目录来 cd 进入.
One of the features that I kept hearing about zsh was that it will highlight your selection as you tab through a list of possible choices. Such as choosing a directory to cd into.
我以为会自动启用此功能,但似乎没有.目前我在我的 .zshrc 中有这个用于 git 自动完成
I thought this feature would be enabled automatically, but it doesn't appear to be. At the moment I have this in my .zshrc for git auto completion
zstyle ':completion:*:*:git:*' script /usr/local/etc/bash_completion.d/git-completion.bash
fpath=(/usr/local/share/zsh-completions $fpath)
autoload -U compinit && compinit
zmodload -i zsh/complist
我还需要添加什么才能获得这种效果?
What else do I have to add to get this effect?
推荐答案
你还需要menu
和select
:
zstyle ':completion:*' menu select
这篇关于ZSH 在选项卡上突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文