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
相关推荐
鄃鳕8 分钟前
Git , 本地落后远端
git
Yusei_05235 小时前
迅速掌握Git通用指令
大数据·git·elasticsearch
qq_3775727714 小时前
git commit - revert + reset + checkout + reorder
git
2301_7672332220 小时前
Git使用和理解上的一些问题
git
共享家95271 天前
linux-数据链路层
linux·网络·macos
nyf_unknown1 天前
(vue)将文件夹打成tar包, Git Bash(推荐)具体使用
vue.js·git·bash
兔老大RabbitMQ1 天前
Git Revert 特定文件/路径的方法
git
CZIDC1 天前
MacOS字体看起来比在 Windows 上更好?
macos
Cosmoshhhyyy2 天前
linux远程部署dify和mac本地部署dify
linux·运维·macos
行星0082 天前
mac 通过homebrew 安装和使用nvm
macos·npm·node.js