iterm2美化教程

911 阅读1分钟

界面美化(个人偏好)

  1. Preferences => Appearance => General

    Theme: Minimal

  2. Preferences => Appearance => Windows

    勾选 Hide Scrollbars

  3. Preferences => Appearance => Profiles => Text

    Cursor: Verticalbar

    Font: Meslo Nerd Font, Regular, 15, 100, 100

  4. Preferences => Appearance => Profiles => Window

    Transparency: 32

    Columns: 100

    Rows: 30

安装oh-my-zsh

  1. 安装

    sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    
  2. 安装powerlevel10k

    brew install romkatv/powerlevel10k/powerlevel10k
    echo "source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc
    
  3. powerlevel10设置

    p10k config
    
  4. oh-my-zsh插件

    • ~/.zshrc里面的plugins(内置的)

      plugins=(colorize copypath git node npm taskwarrior web-search) 
      
    • 安装zsh-autosuggestions

      git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
      

      往~/.zshrc里面的plugin添加zsh-autosuggestions

    • 安装zsh-syntax-highlighting

      git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
      

      往~/.zshrc里面的plugin添加zsh-syntax-highlighting