Powerline Patched Fonts on OSX 10.9.3 - iTerm2 & Chrome

Solution 1:

Just install Input Mono font, comes with full support to powerline.

In order the following to work, Input Mono font must be version 1.1. You can check the font version by going to Font Book → View → Show Font Info, and look at the version number.

With Terminal.app works out of the box. Just select the font and you are ready.

With iTerm2, you have to modify a couple of things:

  • Go to Preferences → Profiles → Text and uncheck `Use a different font for non-ASCII text.
  • Just above, click on Change Font and select Input Mono. Additionally you have to change Character Spacing → Vertical to 110%. Seems that Terminal and iTerm2 render character spacing in a different way.

Solution 2:

Chances are you haven't updated bash. OS X ships with bash < 4, so you cannot printf or echo -e unicode codes.

Steps to update bash with homebrew:

  1. brew install bash
  2. Find the prefix of the bash installed by homebrew, mine was /usr/local/Cellar/bash/4.3.30/, so my bash binary was /usr/local/Cellar/bash/4.3.30/bin/bash.
  3. sudo (vim|nano|emacs|etc) /etc/shells
  4. Get said bash path, and add it to the end of the list(or replace /usr/bin, if you're really brave.)
  5. chsh
  6. Change the Shell: line to match your bash path.
  7. Restart your term.

And you should be fixed.