Skip to content

Instantly share code, notes, and snippets.

@subpath
Forked from andyyou/iterm2-solarized.md
Created June 10, 2021 18:18
Show Gist options
  • Save subpath/c1c893fd6d815670f3f4d76cc1575d63 to your computer and use it in GitHub Desktop.
Save subpath/c1c893fd6d815670f3f4d76cc1575d63 to your computer and use it in GitHub Desktop.
iTerm2 + oh my zsh + solarized + Meslo powerline font (OSX)

How to install

iTerm2

  • Download and install iTerm2 (it has better color fidelity than the built in Terminal).

Get the iTerm color settings

Just save it somewhere and open the file(s). The color settings will be imported into iTerm2. Apply them in iTerm through iTerm -> preferences -> profiles -> colors -> load presets. You can create a different profile, other than Default if you wish to do so.

Oh my zsh

More info here: https://github.com/robbyrussell/oh-my-zsh

curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh

edit ~/.zshrc and set ZSH_THEME="agnoster"

Install a patched font

Open the downloaded font and press "Install Font".

Set this font in iTerm2 (14px is my personal preference) (iTerm -> preferences -> profiles -> text).

  • Regular Font -> "Change Font"

  • Non-ASCII Font -> "Change Font"

Restart iTerm for all changes to take effect.

Shorter prompt style

By default, your prompt will now show “user@hostname” in the prompt. This will make your prompt rather bloated. Optionally set DEFAULT_USER in ~/.zshrc to your regular username (these must match) to hide the “user@hostname” info when you’re logged in as yourself on your local machine.

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