本文最后更新于 2024-12-21T18:45:13+08:00
安装 iterm2
iterm2 有 2 中安装方式,下面我们来讲解
- 打开iterm2 官方下载地址
🔗,选择 Stable Releases(稳定版本)下载解压后拖到应用市场
- 直接通过 homebrew 安装
配置
安装 oh-my-zsh
1 2 3 4 5
| sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
|
配置主题
安装成功后使用 vim 修改主题 ·
使用配色
这里我使用了 Solarized Dark
安装插件
- 语法高亮 zsh-syntax-highlighting
1
| brew install zsh-syntax-highlighting
|
1 2
| cd ~/.oh-my-zsh/custom/plugins && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
|
- 命令补全zsh-autosuggestions
1
| git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
- 配置插件
1 2 3 4 5 6
| plugins=( git zsh-autosuggestions zsh-syntax-highlighting )
|
- 让 .zshrc 配置文件生效
iterm2安装使用教程
https://www.gongyibai.site/macOS中使用iterm2/