常常使用tab来补全需要的命令参数,但在最小化安装系统的时候默认不安装,由于软件在epel库中,安装时先安装epel-release,再安装bash-completion,且需要重新建立bash环境。
yum -y install epel-release
yum -y install bash-completion
brew install bash-completion
# 写入设置,具体的可以通过 brew info bash-completion 查看
vim ~/.zshrc
fpath=(/usr/local/share/zsh-completions $fpath)
plugins=(... zsh-completions)
autoload -U compinit && compinit
文章评论
非技术的路过。