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

相关推荐
pe7er2 天前
macOS 应用无法打开(权限问题)解决方案
macos·mac
harmful_sheep4 天前
mac生效的终端查看
macos
iOS门童5 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~5 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
差不多程序员5 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl843945 天前
mac 安装python
开发语言·python·macos
Bruce_Liuxiaowei5 天前
在 macOS 上通过 Docker 本地安装 OpenClaw 完整教程
macos·docker·容器·openclaw
阿捏利5 天前
详解Mach-O(十五)Mach-O __DATA_CONST
macos·ios·c/c++·mach-o
ShikiSuen5 天前
macOS 的 CpLk 中英切换卡顿的元凶在 InputMethodKit 本身
macos
xiayutian_c5 天前
如虎添翼-MacOS
macos