The installation

  • iTerm2:www.iterm2.com/

    • The ZSH terminal is used by default
    chsh -s /bin/zsh
    Copy the code
  • Oh my zsh

    #Curl Installation mode
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    Copy the code
  • PowerLine

    PIP sudo easy_install PIP sudo easy_install PIP sudo easy_install PIP sudo easy_install PIP sudo easy_install PIPCopy the code
  • PowerFonts

    / / using HTTPS download is likely to fail the git clone [email protected]: powerline/fonts. The git / / folder into the warehouse, execute the script. / install. ShCopy the code
  • color-schemes

    // download
    https://iterm2colorschemes.com/
    Copy the code

collocation

The theme

use

  • Import external themes

    AppleShowAllFiles -bool True Defaults Write com.apple.finder AppleShowAllFiles -bool True Defaults Write com.apple.finder AppleShowAllFiles -bool True Defaults Write com.apple.finder AppleShowAllFiles -bool false // Shortcut key Command + Shift +Copy the code
    • Root directory –>.oh-my-zsh(macOS will automatically hide files starting with ‘.’)–> Themes –> Paste the desired ‘-theme’ file into this folder
  • Choose a topic

    • The root directory – > ZSHRC
    # Set name of the theme to load --- if set to "random", it will
    # load a random theme each time oh-my-zsh is loaded, in which case.
    # to know which specific one was loaded, run: echo $RANDOM_THEME
    # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
    ZSH_THEME="xxxx"
    #"xxxx"Replace it with the theme you want
    Copy the code

choose

  • ZSH packages come with themes
  • External themes that need to be manually downloaded yourself

The color

use

  • iTerm2–>Perferences–>Profiles–>Colors–>Color Presets
    • Select the color theme you want
    • Click Import to introduce an external color theme

choose

  • Iterm2-color-schemes

results

  • Font: Ubuntu Mono Derivative Powerline Bold 26
  • Color: IC_Green_PPL
  • Theme: Spaceship ZSH(External theme)
  • Plugins =(git autojump extract rand-quote ZSH -syntax-highlighting)

Refer to the article

  • iTerm2 + Oh My Zsh Create comfortable terminal experience

  • Make your iTerm more Geek! :https://www.jianshu.com/p/a0249778872e

  • Commonly used oh – my – ZSH plug-in https://zhuanlan.zhihu.com/p/61447507

  • What are the recommended add-ons for oh My ZSH on MAC? https://www.zhihu.com/question/49284484

  • ZSH oh – my – ZSH plug-in recommend https://juejin.cn/post/6844903598300610568

  • Customizing the OS X Terminal https://medium.com/@Jarvski/customizing-the-os-x-terminal-11fda5c3dd5c

  • iTerm2 How dare you call yourself an old driver when you don’t know how to use it? (on)