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
  • step-2: clone 仓库
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git

cho "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
  • step-3: 激活语法高亮
source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  • step-4: 使用 vscode 打开环境变量配置文件
code /Users/tangyong/.bash_profile
  • step-5: 激活配置
source ~/.bash_profile

1.1.3. HotKey Window配置

路径:iterm2 -> preferences -> keys -> configure HotKey Window
Copyright © tomgou 2022 all right reserved,powered by Gitbook该文章修订时间: 2023-08-28 17:33:23

results matching ""

    No results matching ""