Use iTerm2 + Oh My Zsh to configure a comfortable terminal of your own. Text using Homebrew installation software, Vim edit files;
1. InstalliTerm2
Install iterm2 using Homebrew
brew cask install iterm2
Copy the code
2. Configure the iTerm2 theme (Solarized Dark theme)
I like the Solarized Dark theme.
- Download Solarized Dark Theme
- Configure the theme after downloading
- Open the Preferences configuration screen and then Profiles -> Colors -> Color Presets
Select Import from the drop down list and select the solarized->iterm2-colors-solarized-> solarized Dark. Itermcolors file that you just decompressed.
- After the import is successful, select Solarized Dark theme under Color Presets
Configuration of 3.Oh My Zsh
/ / 1. Install the sh -c "$(curl - fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" / / 2. Set to the default Shell CHSH -s /bin/zsh // 3. ZSH_THEME="agnoster" esc press to exit the editing mode,:wq save the configuration and exitCopy the code
4. Installing zsh-syntax-considering
// 1. Install brew install ZSH -syntax- considering // 2. ZSHRC // add source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting. ZSHCopy the code
5. Configure the Meslo font
- Download the Meslo font and install it.
- Open the Preferences screen and select Profiles -> Text -> Font -> Chanage Font and select Meslo LG M Regular for Powerline;
6. Solve the problem of VScode terminal garbled characters
Add the terminal font Meslo LG M for Powerline in the editor Settings 👌.
Common shortcut key commands
Command + t Create a label Command + W Close a label Command + Enter Toggle full screen Command + F Search command + D Horizontal split screen Command + Shift + D Vertical split screen Command + option + arrow key command + [or command +] Switch screen command + number command + left and right arrow keys switch label command +; View the history command Command + Shift + H View the history of the clipboard CTRL + U Clear the current line CTRL + L Clear the screen CTRL + A to the beginning of the line CTRL + E to the end of the line CTRL + F/B Forward or Backward CTRL + P Last command CTRL + R Searches command historyCopy the code