Mac OS X 安裝 bash-completion

发布时间: 更新时间: 总字数:87 阅读时间:1m 作者: 分享 复制网址

Mac 终端下,我们都会想要按 tab 就出现指令的自动补全,可以安装bash-completion达到对应的目的。

bash-completion

brew install bash-completion

Add bash-completion to your ~/.bash_profile:

[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion

zsh

  • clone
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  • config
~/.zshrc
plugins=(
  ...
  zsh-autosuggestions
)
  • 配置文件位置
/usr/local/share/zsh/site-functions

参考

  1. Install-Bash-git-completion
最新评论
加载中...
Home Archives Categories Tags Statistics