Home

Awesome

Cobalt2 for iTerm2 and ZSH

<img width="664" alt="iTerm2 Cobalt2" src="https://user-images.githubusercontent.com/176013/209395069-7e307ba0-d645-40d7-a235-267a9430080e.png">

They work well together! You will need to install the patched powerline font as well: https://github.com/powerline/fonts

Step-by-step installation

  1. Drop the cobalt2.zsh-theme file in to the ~/.oh-my-zsh/themes/ directory.

  2. Open up your ZSH preferences at ~/.zshrc and change the theme variable to ZSH_THEME="cobalt2".

  3. Install Powerline and necessary fonts, one way is using PIP

pip install --user powerline-status
git clone https://github.com/powerline/fonts
cd fonts
./install.sh

note: if you are using iTerm2, they now have a checkbox for Powerline fonts ProfilesText.

  1. In iTerm2 access the Preferences pane on the Profiles tab.
  2. Under the Colors tab import the cobalt2.itermcolors file via the Load Presets drop-down.
  3. Under the Text tab change the font for each type (Regular and Non-ASCII) to 'Inconsolata for Powerline'. (Refer to the powerline-fonts repo for help on font installation.)
  4. Refresh ZSH by typing source ~/.zshrc on the command line.
  5. If you want the full blown tabs and everything shown in the screenshot, use the Profile in Cobalt2.json.
...in a MinTTY environment
  1. Drop the cobalt2.zsh-theme file in to the ~/.oh-my-zsh/themes/ directory.
  2. Open up your ZSH preferences at ~/.zshrc and change the theme variable to ZSH_THEME="cobalt2".
  3. Install 'Inconsolata for Powerline'. (Refer to the powerline-fonts repo for help on font installation.)
  4. Replace the ~/.minttyrc file with the .minttyrc file in this repo.
  5. Restart your terminal.