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

相关推荐
大熊猫侯佩1 天前
升级到 macOS26.5 后看视频会自动息屏的解决
macos·操作系统
磊 子1 天前
C++ IO 流
macos·objective-c·cocoa
real_haha1 天前
我做了一个仅有 1.3 MB 的 macOS 原生 AI 助手:AskNow
人工智能·macos
June bug2 天前
(Mac)macOS x86_64上onnxruntime==1.24.4 安装失败
macos
ACP广源盛139246256732 天前
iOS 27 开放 AI 生态@ACP#小型化扩展黄金风口,IX8008全面超越 ASM2806,铸就嵌入式 AI 扩展核心
人工智能·嵌入式硬件·macos·ios·计算机外设·objective-c·cocoa
海的辽阔2 天前
如何在MAC下安装EcomGpt模型
macos·大模型·ecomgpt
zandy10112 天前
hermes agent 安装教程 3.0:Win / Mac / Linux 全平台指南
linux·运维·macos
花开·莫之弃2 天前
Mac安装多版本jdk(jenv)
java·开发语言·macos
June bug2 天前
(Mac)torch==2.1.2 与 Python 3.12 不兼容+onnxruntime-silicon 不支持 Intel Mac
开发语言·python·macos
码农小北2 天前
MAC 配置鸿蒙(HarmonyOS) SDK 环境变量完整指南
macos·华为·harmonyos