Install iTerm2

ITerm2 website

Install OH-my-ZSH

2.1 installation

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Copy the code

2.2 uninstall

uninstall_oh_my_zsh
Copy the code

Oh-my-zsh installed successfully

Install Powerline font library

git clone [email protected]:powerline/fonts.git
cd fonts
./install.sh
Copy the code

Configure iTerm2: (iTerm2> Profiles> Preferences> Text>Change Font)

If no non-ASCII Font is found in the red box, check where the blue arrow points and then restart.

4. Install solarized color scheme

Just select the one shown below

Install the Agnoster theme

Oh-my-zsh already has this theme built in, so you don’t need to download it separately, just configure it.

Go to the root directory

withvimThe editor opens the hidden file.zshrcThat will beZSH_THEMEChange the following fields toagnoster.When the changes are complete, execute the following command:

source ~/.zshrc
Copy the code

The effect is as follows:

Set syntax highlighting

  • Install zsh-syntax-highlighting plug-ins directly using Homebrew

    brew install zsh-syntax-highlighting
    Copy the code
  • Then insert the following in the root directory. ZSHRC

    source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
    Copy the code
  • Insert the following in.zshrc

    plugins=(
      git
      zsh-syntax-highlighting
    )
    Copy the code

Hide the name and host name

Is that a name you don’t want to expose? It doesn’t matter. I can hide it now. I’m going to set it to 🍺, and you can set it to empty or whatever.

  • Go to the Theme directory

    cd ~/.oh-my-zsh/themes
    Copy the code
  • Open the Agnoster theme, press the red box inside the edit save exit is good

    vim agnoster.zsh-theme
    source agnoster.zsh-theme
    Copy the code

Ok, done. I hope that helped.