Skip to content

Instantly share code, notes, and snippets.

@zbyju
Last active June 7, 2023 17:46
Show Gist options
  • Save zbyju/4e63846129a2199f2439c5de7950d995 to your computer and use it in GitHub Desktop.
Save zbyju/4e63846129a2199f2439c5de7950d995 to your computer and use it in GitHub Desktop.
MAC iTerm 2 configuration with Dracula + Oh My Zsh + plugins (autosuggestion)

This is my iTerm MAC configuration:

How it looks

Install iTerm

brew install --cask iterm2

Import theme

Themes can be found here.

Personally, I use Dracula - link to the file: here.

To download the theme you can either:

  • clone the repo git clone https://github.com/dracula/iterm.git
  • download as zip https://github.com/dracula/iterm/archive/master.zip
  • create an empty file (it must have .itermcolors extension) and then insert the theme as text.

Then to import it into iterm you need to open iterm and go to iTerm2 (top left)Preferences...ProfilesColorsColor Presets...Import... ⇒ Open the *.itermcolors file ⇒ Open Color Presets... again and choose the theme from the dropdown menu.

Install Oh My Zsh

If you want to read what Oh My Zsh is, then you can do so here.

Install using this:

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

Then you can choose which theme you want to be using, Oh My Zsh offers a lot of themes that you can choose from.

You can choose the theme by opening ~/.zshrc in a text editor and overriding the ZSH_THEME="" property to the theme you want to be using.

I personally use the agnoster theme.

# You can open the file in vim or nano
vim ~/.zshrc
nano ~/.zshrc

# Change ZSH_THEME="..." to (in my case) ZSH_THEME="agnoster".

Fix font

If the theme uses some characters that the default font does not support you will need to change the font. The best font imho is Fira Code that you can install by following these instructions.

Then you need to select this font by opening iTerm ⇒ iTerm2 (top left) ⇒ Preferences...ProfileText` ⇒ at the bottom change the font.

Plugins

You can also install Oh My Zsh plugins, such as:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment