使用 oh-my-zsh 安装终端命令行补全插件提高生产力
1. 安装
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# 国内
sh -c "$(curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
安装插件
通过运行以下命令安装 zsh 命令行补全建议:
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
通过运行以下命令安装 zsh 语法高亮显示:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
修改配置文件 ~/.zshrc
,设置插件
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
注意: 相关的 omz 配置必须在 source $ZSH/oh-my-zsh.sh
前添加。
https://github.com/ohmyzsh/ohmyzsh
https://ohmyz.sh/