Mac好用又好看的终端iTerm2 + oh-my-zsh

Mac好用又好看的终端iTerm2

  • [1. iTerm2的下载安装](#1. iTerm2的下载安装)
  • [2. oh-my-zsh的安装](#2. oh-my-zsh的安装)
    • [2.1 官网安装方式](#2.1 官网安装方式)
    • [2.2 国内镜像源安装方式](#2.2 国内镜像源安装方式)
  • [3. oh-my-zsh配置](#3. oh-my-zsh配置)
    • [3.1 存放主题的路径](#3.1 存放主题的路径)
    • [3.2 存放插件的路径](#3.2 存放插件的路径)
    • [3.3 配置文件路径](#3.3 配置文件路径)

1. iTerm2的下载安装

官网下载:iTerm2

2. oh-my-zsh的安装

oh-my-zsh是一个令人愉快的、开源的、社区驱动的框架,用于管理您的zsh配置。它捆绑了数千个有用的功能、助手、插件、主题。

2.1 官网安装方式

oh-my-zsh官网地址:oh-my-zsh官网

官网提供了curlwget两种方式安装,根据喜好自行选择。

2.2 国内镜像源安装方式

由于网络原因,采用官网安装方式如果失败,可以利用国内镜像源安装。

国内镜像地址:oh-my-zsh国内镜像

bash 复制代码
sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh )"

3. oh-my-zsh配置

3.1 存放主题的路径

bash 复制代码
cd ~/.oh-my-zsh/themes

3.2 存放插件的路径

bash 复制代码
cd ~/.oh-my-zsh/plugins

3.3 配置文件路径

bash 复制代码
# 编辑配置文件
vi ~/.zshrc
bash 复制代码
# zsh-syntax-highlighting 插件,语法高亮
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
# zsh-autosuggestions 插件,自动补全
git clone https://github.com/zsh-users/zsh-autosuggestions
bash 复制代码
# 配置主题
ZSH_THEME="af-magic"
# 配置插件
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
bash 复制代码
# 刷新配置
source  ~/.zshrc
相关推荐
CoderJia程序员甲3 小时前
GitHub 热榜项目 - 日榜(2026-02-08)
git·ai·开源·llm·github
jxy99984 小时前
mac mini 安装java JDK 17
java·开发语言·macos
Figo_Cheung4 小时前
Figo关于OpenClaw(MacOS)安装前环境变量设置保姆级教程
macos·性能优化·个人开发
Serene_Dream4 小时前
git 常用命令
git
jiayong234 小时前
Detached HEAD 状态详解
git
未来侦察班13 小时前
一晃13年过去了,苹果的Airdrop依然很坚挺。
macos·ios·苹果vision pro
李少兄14 小时前
在 IntelliJ IDEA 中修改 Git 远程仓库地址
java·git·intellij-idea
普通网友18 小时前
苹果笔记本(Mac)连接手机完全指南
macos·智能手机
先跑起来再说19 小时前
Git 入门到实战:一篇搞懂安装、命令、远程仓库与 IDEA 集成
ide·git·后端·elasticsearch·golang·intellij-idea
Aftery的博客20 小时前
Xcode运行报错:SDK does not contain ‘libarclite‘ at the path
macos·cocoa·xcode