zsh-autocomplete
摘要
-
安装
brew install zsh-autocomplete #Add at or near the top of your .zshrc file (before any calls to compdef): source $HOMEBREW_PREFIX/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh
-
配置
add the code shown to your
.zshrc
file and modify it there, then restart you shell.# make it work like in an Ubuntu Bash bindkey '^I' menu-complete bindkey "$terminfo[kcbt]" reverse-menu-complete
-
常见问题
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]
# press n, then compaudit # show insecure directories # /opt/homebrew/share/zsh/ # /opt/homebrew/share/zsh/site-functions/ # based on the lists above sudo chmod -R 755 /opt/homebrew/share/zsh/site-functions/ sudo chmod -R 755 /opt/homebrew/share/zsh/ sudo chown -R root:root /opt/homebrew/share/zsh/site-functions/ sudo chown -R root:root /opt/homebrew/share/zsh/