#iTerm2

  • Download and installiTerm2Go to theITerm2 websitedownloadiTerm2After downloading, unzip and drag the application directly
  • configurationiTerm2If you are too lazy or don’t want to match colors, you can skip this step and use moreSolarized Dark themeUnzip the theme download and open itiTerm2thePreferencesOn the configuration screen, you can pressCommand + ,Key open, and thenProfiles -> Colors -> Color Presets -> Import

Color Presets->

#Oh My Zsh

Oh, my Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration. It comes bundled with thousands of useful features, assistants, plugins, themes, and a few things to make you scream…

  • GitHub download Oh My Zsh download Oh My Zsh
// Use CRUL installation: $sh -c"$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Copy the code

Methods three

// wget: $sh -c"$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
Copy the code

The installation is complete as follows

Remarks Uninstall oH-my-zsh

$ uninstall_oh_my_zsh
Copy the code
  • oh-my-zshInterface beautification 1.PowerlineDownload and install

Powerline is a state line plug-in for Vim and provides state lines and prompts for several other applications, including ZSH, bash, TMUx, IPython, Awesome, I3, and Qtile.

1.1 Installing the PIP Directive

$ sudo easy_install pip
Copy the code

1.2 download the Powerline

$ pip3 install powerline-status --user
Copy the code

Which font library
Making the download

After decompressing, go to the directory where the install.sh file is stored and install all Powerline fonts

$ cd fonts-master
$ sh ./install.sh
Copying fonts...
Powerline fonts installed
Copy the code

Select a Powerline Font that you feel comfortable with

1.5 oh-my-zshTheme set toagnosterTake themes as an example. >>>Making the downloadDownload unzip and openinstallInstall, the installation will automatically install to~/.oh-my-zsh/themesdirectory

If you are 10.15 or later and cannot open install, please refer to itMacOS open software shows corrupted or unable to verify that this App does not contain malware

The editor~/.zshrcZSH_THEME="robbyrussell"Instead ofZSH_THEME="agnoster"then$source ~/.zshrcThe configuration takes effect.

Zsh-theme in ~/.oh-my-zsh/themes directory, modify prompt_context() to $USER and open item again

prompt_context() {
  if [[ "$USER"! ="$DEFAULT_USER" || -n "$SSH_CLIENT"]].then
    prompt_segment black default "% (! .%{%F{yellow}%}.)$USER"
  fi
}
Copy the code

1.6 ZSH -syntax- Highlighting directive >>> Github

ZSHRC: /.zshrc: /.zshrc: /.zshrc: /.zshrc: /.zshrc: /.zshrc: /.zshrc: /.zshrc: /.zshrc: /.zshrc: /.zshrc: /.zshrc: /.zshrc

$git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
Copy the code

1.7 Zsh-autosuggestions command suggestions and completion

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

To use it, you only need to press TAB. A single related command is directly completed, and multiple commands are listed for viewing

  • Go2ShellInstallation and useGo2Shell official website download(Note: the official website to download the latest need to turn over the wall, do not go to appstore to download the version is too old and incompatible) download and install terminal input
$ open -a Go2Shell --args config
Copy the code

Automatically open Go2Shell

cd %PATH%; clear; pwd
Add Go2Shell button to Finder Toolabar

use

All right, you can enjoy Iterm.