Iterm2 + oh my zsh安装及配置

  1. 安装iTerm2:下载链接,安装完成后进行下一步。
  2. 安装oh my zsh
    1. sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
        
    2. 设置iTerm2的字体样式:iTerm2 -> Preferences -> Profiles -> Text -> change font(18,monaco)
  3. 安装zsh自动补全和高亮插件
    1. cd ~/.oh-my-zsh/custom/plugins
      git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
      git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
      cd ~
      vim .zshrc
    2. 添加插件:plugins=(zsh-autosuggestions git)、plugins=(zsh-autosuggestions zsh-syntax-highlighting git)

    3. 修改成功后,执行source ~/.zshrc或重启 shell 生效
 
posted @ 2023-03-31 16:18  刘倩文  阅读(223)  评论(0编辑  收藏  举报