1. iTerm 配置
https://www.jianshu.com/p/ba08713c2b19
1.1.1. 插件
高亮插件位置:/Users/tangyong/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
【插件可以放到两个位置:1./Users/tangyong/.oh-my-zsh/custom/plugins;2./Users/tangyong/.oh-my-zsh/plugins/;】
git地址:https://github.com/zsh-users/zsh-syntax-highlighting.git
配置文件位置:/Users/tangyong/.zshrc
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
环境变量配置文件位置:/Users/tangyong/.bash_profile
生效:source ~/.bash_profile
1.1.2. 安装步骤
- step-1: 切换到 zsh-syntax-highlighting 安装目录
cd /Users/tangyong/.oh-my-zsh/custom/plugins
or
cd /Users/tangyong/.oh-my-zsh/plugins
git clone https:
cho "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
- step-4: 使用 vscode 打开环境变量配置文件
code /Users/tangyong/.bash_profile
source ~/.bash_profile
1.1.3. HotKey Window配置
路径:iterm2 -> preferences -> keys -> configure HotKey Window