Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Oh My Zsh

My favourite iTerm2 profile configured to perfection

💾 Install Oh My Zsh

Follow the basic installation:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

You should now have .zshrc and .oh-my-zsh in your root directory

🌌 Changing the profile

  • vi ~/.zshrc
  • Change the theme line to ZSH_THEME="agnoster"
  • Add any custom aliases at the end of the file
  • Write and quit
  • Restart iTerm

🔨 Fixing the broken icons

You might see some broken icons, this is because the agnoster theme requires a specific font. To fix this (cd to ~/Desktop)

  1. git clone https://github.com/powerline/fonts
  2. cd fonts
  3. ./install.sh from terminal / command line
  4. Open iTerm -> Preferences -> Profiles -> Text -> Change Font -> Meslo LG S DZ Regular for Powerline
  5. Restart iTerm

🎨 Changing the colours

  • Save a copy of this colour preset file
  • Open up the iTerm preferences
  • Go to Profiles -> Colors
  • Under Color Presets select Import and choose the file you downloaded
  • Select the preset colours
  • Restart iTerm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment