[Visualization tutorial] ITERM2 + OH-MY-ZSH + Solarized color scheme

[Visualization tutorial] iTerm2+oh-my-zsh+solarized color scheme

My own Mac terminal color matching

Modify Mac’s terminal color scheme
#enables colorin the terminal bash shellexport export CLICOLOR=1#sets up thecolor scheme for listexport export LSCOLORS=gxfxcxdxbxegedabagacad#sets up theprompt color ( currently a green similar to linux terminal)#export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$'#enables colorfor iTerm export TERM=xterm -color

where export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\ ]\w\[\033[00m\]\$' is commented out.

Preparation before construction

  • The best terminal for iTerm Mac, click the link to download the latest version.
  • Solarized Dark now has color matching resources.
  • oh-my-zsh can be used curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | shInstallation
  • Monaco Powerline solves the problem of garbled characters in some characters.

iTerm

Download & unzip, and move to the Application file.

Solarized Dark

Download and unzip Solarized Dark, click on the directory solarized\iterm2-colors-solarizedSolarized Dark.itermcolors and Solarized Light.itermcolors to install.

oh-my-zsh install agnoster theme

Install via command line: curl -L https://github.com/robbyrussell/oh-my -zsh/raw/master/tools/install.sh | sh.
Uninstall oh-my-zsh command: uninstall_oh_my_zsh.

vim ~/.zshrc //Enter the .zshrc file and change the field behind ZSH_THEME to agnoster pre> 

Monaco Powerline

Download and install.

Set syntax highlighting-zsh-syntax-highlighting

Use homebrew to install zsh-syntax-highlighting plug-in

brew install zsh-syntax-highlighting

Then insert the following in the root directory.zshrc Content:

source /usr/local/share/zsh-syntax< /span>-highlighting/zsh-syntax-highlighting< /span>.zsh

hide user name information

In front of each line of general terminal There will be xxx@xxxdeMacbook-Pro: we can hide it.
Enter the agnoster theme of oh-my-zsh and edit the agnoster.zsh-theme file:
vim ~/.oh-my-zsh/themes/agnoster.zsh-theme

Leave a Comment

Your email address will not be published.