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
相关推荐
吹泡泡的派大星24 分钟前
从0-1搭建mac环境最新版
macos
zhouwu_linux27 分钟前
MT7628基于原厂的SDK包, 修改ra1网卡的MAC方法。
linux·运维·macos
丁总学Java29 分钟前
在 macOS 的 ARM 架构上按住 Command (⌘) + Shift + .(点)。这将暂时显示隐藏文件和文件夹。
macos
青木川崎30 分钟前
Mac下常用命令
macos
ClaNNEd@30 分钟前
Mac端homebrew安装配置
macos·brew
nicekwell2 小时前
macos sequoia 禁用 ctrl+enter 打开鼠标右键菜单功能
macos
丁总学Java6 小时前
在 Mac ARM 架构的 macOS 系统上启用 F1 键作为 Snipaste 的截屏快捷键
macos·snipaste
逸Y 仙X6 小时前
Git常见命令--助力开发
java·大数据·git·java-ee·github·idea
wgslucky8 小时前
pipeline 使用git parameter插件实现动态选择分支构造
git
天下皆白_唯我独黑10 小时前
brew Nushell mac升级版本
macos