Skip to content

Instantly share code, notes, and snippets.

@ZenLulz ZenLulz/README.md
Last active Jul 10, 2020

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

RosayGaspard commented Apr 10, 2018

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

@melgers

This comment has been minimized.

Copy link

melgers commented Sep 7, 2018

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

@mehdihettak

This comment has been minimized.

Copy link

mehdihettak commented Apr 20, 2019

thanks a lot :) nice job

@sonoalex

This comment has been minimized.

Copy link

sonoalex commented Dec 18, 2019

Thanks!

@billwatson017

This comment has been minimized.

Copy link

billwatson017 commented Feb 7, 2020

🔥🔥🔥

@Antoine-lb

This comment has been minimized.

Copy link

Antoine-lb commented May 24, 2020

works perfect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.