A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
To test if your terminal and font support it, check that all the necessary characters are supported by copying the following command to your terminal: echo "⮀ ± ⭠ ➦ ✔ ✘ ⚡"
. The result should look like this:
TO MAKE THE FONTS WORK YOU NEED A POWERLINE PATCHED FONT: https://github.com/Lokaltog/vim-powerline/wiki/Patched-fonts
- Success (✔) or failure (✘) of previous command
- Hostname
- Git status
- Branch (⭠) or detached head (➦)
- Current branch / SHA1 in detached head state
- Dirty working directory (±, color change)
- Working directory
- Elevated (root) privileges (⚡)
I don't want to clutter it up too much, but I am toying with the idea of adding RVM (ruby version) and n (node.js version) display.
It's currently hideously slow, especially inside a git repo. I guess it's not overly so for comparable themes, but it bugs me, and I'd love to hear ideas about how to improve the performance.
Would be nice for the code to be a bit more sane and re-usable. Something to easily append a section with a given FG/BG, and add the correct opening and closing.
Apparently the unicode characters don't display correctly on all systems. It would be nice to be able to say "this font will make it work, always". But what font?
For some reason I couldn't comment on the original gist...
The issue with the fonts is that you need a font that is patched for VimPowerline!
Menlo:
https://gist.github.com/1627888
A bunch of others:
https://github.com/Lokaltog/vim-powerline/wiki/Patched-fonts