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
相关推荐
abcnull1 小时前
github开源协议选择
git·github·开源协议
ItisNagatoYuki3 小时前
Mac M芯片 RAG 极简流程 安装 ragflow + LM studio
macos
安庆平.Я4 小时前
git互联GitHub 使用教程
git·github
云攀登者-望正茂6 小时前
如何在mac上安装podman
macos·podman
自来也_10 小时前
Git配置代理
git
江梦寻12 小时前
MacOS下Homebrew国内镜像加速指南(2025最新国内镜像加速)
开发语言·后端·python·macos·架构·策略模式
*Lisen12 小时前
重新安装解决mac vscode点击不能跳转问题
ide·vscode·macos
weixin_3875456420 小时前
如何把 Mac Finder 用得更顺手?——高效文件管理定制指南
macos
itme2681 天前
解决cocos 2dx/creator2.4在ios18下openURL无法调用的问题
macos·objective-c·cocoa
Jooolin1 天前
【编程史】Git是如何诞生的?这可并非计划之中...
linux·git·ai编程