Mac OS X 安裝 bash-completion

发布时间: 更新时间: 总字数:87 阅读时间:1m 作者: IP上海 分享 网址
专栏文章
  1. Mac
  2. Mac
  3. Mac Brew 介绍
  4. Mac Ohmyz 使用介绍
  5. Mac 快捷键
  6. Mac 常用软件汇总
  7. Mac iTerm2 快捷键
  8. Mac OS X 安裝 bash-completion(当前)
  9. Mac 系统制作加密的 zip 压缩包

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