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

相关推荐
肖永威2 小时前
macOS环境安装/卸载python实践笔记
笔记·python·macos
雨中风华7 小时前
Linux, macOS系统实现远程目录访问(等同于windows平台xFsRedir软件的目录重定向)
linux·windows·macos
有趣的杰克11 小时前
开源|macOS 菜单栏 AI 启动器 GroAsk:⌥Space 一键直达 ChatGPT / Claude / Gemini
人工智能·macos·chatgpt
疯狂敲代码的老刘11 小时前
JDK 1.6到25 全版本网盘合集 (Windows + Mac + Linux)
java·linux·windows·macos·jdk
jxy999813 小时前
mac mini 安装java JDK 17
java·开发语言·macos
Figo_Cheung13 小时前
Figo关于OpenClaw(MacOS)安装前环境变量设置保姆级教程
macos·性能优化·个人开发
未来侦察班1 天前
一晃13年过去了,苹果的Airdrop依然很坚挺。
macos·ios·苹果vision pro
普通网友1 天前
苹果笔记本(Mac)连接手机完全指南
macos·智能手机
Aftery的博客1 天前
Xcode运行报错:SDK does not contain ‘libarclite‘ at the path
macos·cocoa·xcode
楚轩努力变强2 天前
iOS 自动化环境配置指南 (Appium + WebDriverAgent)
javascript·学习·macos·ios·appium·自动化