Set up iTerm2 on Mac OS

  • Install Oh My Zsh https://ohmyz.sh/
  • Install ZSH Autosuggestions plugin https://github.com/zsh-users/zsh-autosuggestions
    • git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    • vi ~/.zshrc
      • Replace plugins=(git) with
      plugins=(
      	git
          # other plugins...
          zsh-autosuggestions
      )
      
      • Add ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ff00ff,bg=cyan,bold,underline"
  • Install iTerm2 https://iterm2.com/
  • iTerm2 Preferences > Appearance > General > Theme: Minimal
  • iTerm2 Preferences > General > Closing > Check Quit when all windows are closed
  • iTerm2 Preferences > General > Closing > Uncheck Confirm closing multiple sessions
  • iTerm2 Preferences > General > Closing > Uncheck Confirm “Quit iTerm2”
  • Enable “right click paste”:
    • iTerm2 Preferences > General, make sure “copy to clipboard on selection” is enabled
    • iTerm2 Preferences > Pointer ( set right button click’s Action to Paste from clipboard)
  • Enable Punctual theme https://github.com/dannynimmo/punctual-zsh-theme:
    • cd $ZSH_CUSTOM/themes
    • wget https://raw.githubusercontent.com/dannynimmo/punctual-zsh-theme/v0.1.0/punctual.zsh-theme
    • vi ~/.zshrc
    • Replace ZSH_THEME="robbyrussell" with ZSH_THEME="punctual"
  • Install Solarized color theme https://github.com/altercation/solarized/tree/master/iterm2-colors-solarized:
    • iTerm2 Preferences > Profiles > Default > Colors > Color Presets… > Import
  • Download and install Ubuntu Mono font https://fonts.google.com/specimen/Ubuntu+Mono
  • iTerm2 Preferences > Profiles > Default > Text > Font > Ubuntu Mono 17px
  • iTerm2 Preferences > Profiles > Default > Text > Check Use ligatures