Mac安装iTerm2

下载安装iTerm2

下载地址:https://iterm2.com/downloads.html

下载后的文件为zip文件,解压之后,双击运行,手动拖动或者点击move to applications目录下

配置iTerm2的主题

  1. 下载主题内容

    git clone https://github.com/altercation/solarized.git

  2. 对终端进行颜色主题配置

    1. 打开本地iTerm
    2. 通过快捷键command + ,,打开设置页面(如下):

点击Profiles => Colors => Color Presets => Import

  1. 引入下载好项目中对应主题:solarized => iterm2-colors-solarized => Solarized Dark.itermcolors
  2. 最后选择上图中第三步的Solarized Dark后,重新启动iTerm即可看到效果

配置On My Zsh

  1. 下载地址:https://github.com/ohmyzsh/ohmyzsh

  2. 对其进行一键安装

    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

  3. 下载后终端内运行如下命令,目的为指定Iterm2设置为默认的sheel

    chsh -s /bin/zsh

  4. 配置zsh的主题内容,执行vim ~/.zshrc,将主题配置修改为ZSH_THEME="agnoster" 也可以去https://github.com/ohmyzsh/ohmyzsh/wiki/themes寻找对应的主题内容

安装iTerm2之后无法使用npm等

将上图中选中的内容,替换为下方代码:plugins=(git node nvm npm yarn) ,保存后退出;

再去执行source ~/.zshrc

相关推荐
SY.ZHOU4 小时前
Significant Location Change
macos·ios·cocoa
buyue__7 小时前
MacOS解决局域网“没有到达主机的路由 no route to host“
macos
明月看潮生17 小时前
青少年编程与数学 01-011 系统软件简介 05 macOS操作系统
macos·青少年编程·操作系统·系统软件·编程与数学
Hello.Reader1 天前
Git 安装全攻略Linux、macOS、Windows 与源码编译
linux·git·macos
Hope Fancy1 天前
macOS 连接 Docker 运行 postgres,使用navicat添加并关联数据库
macos·docker·postgresql
John Song1 天前
macOS 上使用 Homebrew 安装redis-cli
数据库·redis·macos
yanjiee1 天前
编译一个Mac M系列可以用的yuview
macos
数据知道1 天前
Mac电脑上本地安装 redis并配置开启自启完整流程
数据库·redis·macos
电手2 天前
Win10停更,Win11不好用?现在Mac电脑比Win11电脑更便宜
windows·macos·电脑·mac