美文网首页
macOS(M1芯片) 配置 iTerm2 + Oh My Zs

macOS(M1芯片) 配置 iTerm2 + Oh My Zs

作者: Mokyz | 来源:发表于2021-02-01 17:06 被阅读0次
效果

直接开干!

1、下载iTerm2、安装。
2、Preferences 里设置配色

设置配色
3、安装 oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

(如果提示 443 错误,可能是由于 github 访问异常导致,可以参考这篇文章试一试。)

4、配置字体

  • 下载
git clone https://github.com/powerline/fonts.git
  • 安装
cd fonts
./install.sh
  • 在 Preferences 里设置字体


    设置字体

5、配置主题

vi ~/.zshrc

编辑 .zshrc,修改 ZSH_THEME="agnoster"


image.png

6、自动提示、语法高亮

  • 下载自动提示插件
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
  • 下载语法高亮插件
git clone git://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
  • 配置插件


    配置插件
  • 更新配置
zsh ~/.zshrc

7、重启 iTerm

over!

相关文章

网友评论

      本文标题:macOS(M1芯片) 配置 iTerm2 + Oh My Zs

      本文链接:https://www.haomeiwen.com/subject/kxxstltx.html