Skip to content

Instantly share code, notes, and snippets.

@JamesMenetrey
Last active September 29, 2022 08:27
Show Gist options
  • Star 61 You must be signed in to star a gist
  • Fork 21 You must be signed in to fork a gist
  • Save JamesMenetrey/c812f70fc86ebdbb189d9fb82f98197e to your computer and use it in GitHub Desktop.
Save JamesMenetrey/c812f70fc86ebdbb189d9fb82f98197e to your computer and use it in GitHub Desktop.
Install Oh-My-Zsh + iTerm2 with Solarized + System-wide console in 2017 (macOS)

Install iTerm2 with Solarized in 2017

Here is the looks and feel of your terminal once the tutorial has been applied on your system:

Install iTerm2

Using Homebrew:

$ brew cask install iterm2

Install zsh with oh-my-zsh

Oh-My-Zsh is an open source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes, and a few things that make you shout...

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

Apply Solarized

Set up the theme agnoster of zsh

Open the configuration file of zsh.

$ nano ~/.zshrc

Search the line

ZSH_THEME="robbyrussell"

and replace it by

ZSH_THEME="agnoster"

Replace the default theme robbyrussell by agnoster (search the key ZSH_THEME).

Install the required fonts

We need to provide specific fonts for iTerm2 to properly handle the theme agnoster. For that purpose, we are going to install the Powerline fonts.

# Cloning
git clone https://github.com/powerline/fonts.git

# Installation
cd fonts
./install.sh

# Clean up
cd ..
rm -rf fonts

Thanks to pradeepchaudharisc@Github for the trick.

Apply the newly-installed fonts

Open the preferences of iTerm2 (Ctrl+,) and click on the tab Profiles then Text and finally click on the button _Change font" to select 12pt Meslo LG S DZ Regular for Powerline.

Configure the colors set in iTerm2

Open the preferences of iTerm2 (Ctrl+,) and click on the tab Profiles then Colors and finally click on the dropdown list Color Presets.... Select the item Solarized Dark.

System-wide hotkey to show iTerm2

iTerm2 can be invoked with a system-wide hotkey at a given position on the screen. To enable that feature, open the preferences of iTerm2 (Ctrl+,) and click on the tab Keys and check Show/hide iTerm2 with a system-wide hotkey and Hotkey toggles a dedicated window with profile. The styling of that temrinal can be changed in the tab Profiles

Add New Terminal Here in the Finder

Install TermHere.

Further tweaking

The guide of Kevin Smets provides advanced enjoyable modifications to pimp your iTerm2.

@RosayGaspard
Copy link

Nice gist bro, inspired myself to use with Linux subsystem in Windows 10

@melgers
Copy link

melgers commented Sep 7, 2018

Thanks a lot for writing this down. Saved me a ton of time.

@mehdihettak
Copy link

thanks a lot :) nice job

@sonoalex
Copy link

Thanks!

@billwatson017
Copy link

🔥🔥🔥

@Antoine-lb
Copy link

works perfect

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