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
相关推荐
云端奇趣2 小时前
探索 3 个有趣的 GitHub 学习资源库
经验分享·git·学习·github
colorknight3 小时前
1.2.3 HuggingFists安装说明-MacOS安装
人工智能·低代码·macos·huggingface·数据科学·ai agent
F_D_Z6 小时前
【解决办法】git clone报错unable to access ‘xxx‘: SSL certificate problem:
网络·git·网络协议·ssl
GEEKVIP10 小时前
如何修复变砖的手机并恢复丢失的数据
macos·ios·智能手机·word·手机·笔记本电脑·iphone
等风来不如迎风去10 小时前
【git】main|REBASE 2/6
git
艾伦~耶格尔10 小时前
IDEA 配置 Git 详解
java·ide·git·后端·intellij-idea
云兮杜康10 小时前
IDEA中用过git之后文件名颜色全变红
java·git·intellij-idea
睡不醒的小泽10 小时前
git merge 和 git rebase
git
艾伦~耶格尔10 小时前
Git 下载及安装超详教程(2024)
git·gitee·码仓
kuai-11 小时前
MacOS配置python环境
开发语言·python·macos