Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (30 sloc) 1.99 KB

Cobalt2 for iTerm2 and ZSH

Two things for lovers of the Sublime Text Theme. Cobalt2 in your terminal!

cobalt2.itermcolors is for anyone who uses iTerm2 and wants the colours. The cobalt2.zsh-theme is the prompt layout for zsh users.

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
    
    • Now install all necessary fonts by downloading or cloning git repository.
    git clone https://github.com/powerline/fonts
    cd powerline
    ./install.sh
    
  4. In iTerm2 access the Preferences pane on the Profiles tab.

  5. Under the Colors tab import the cobalt2.itermcolors file via the Load Presets drop-down.
  6. 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.)
  7. Refresh ZSH by typing source ~/.zshrc on the command line.
...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.