iterm2安装使用教程

安装 iterm2

iterm2 有 2 中安装方式,下面我们来讲解

  1. 打开iterm2 官方下载地址 🔗,选择 Stable Releases(稳定版本)下载解压后拖到应用市场
  2. 直接通过 homebrew 安装
1
brew install iterm2

配置

安装 oh-my-zsh

1
2
3
4
5
# 使用curl安装
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

# 使用wget安装
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

配置主题

安装成功后使用 vim 修改主题 ·

1
ZSH_THEME="agnoster"

使用配色

这里我使用了 Solarized Dark

安装插件

  1. 语法高亮 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
  1. 命令补全zsh-autosuggestions
1
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  1. 配置插件
1
2
3
4
5
6
# 📢: zsh-syntax-highlighting一定要在最后
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
  1. 让 .zshrc 配置文件生效
1
source ~/.zshrc

iterm2安装使用教程
https://www.gongyibai.site/macOS中使用iterm2/
作者
爱吃糖醋排骨的苏小妍.
发布于
2024-12-16 15:27:46
更新于
2024-12-21 18:45:13
许可协议