brew install cmake
brew install python
sudo easy_install pip
Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line
PATH="/usr/local/share/python/:$PATH"
I needed to edit the formula to specify which python to build against.
brew edit macvim
Edit it as follows (tip is from here)
Find the arguments list (begins with args = %W[ ...), and modify this line:
--enable-pythoninterp
Change it to these two lines:
--enable-pythoninterp=dynamic
--with-python-config-dir=/usr/local/lib/python2.7/config
On my system the above folder did not exist so I had to link it as follows
ln -s /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/Current/lib/python2.7/config /usr/local/lib/python2.7/config
then reinstall it
brew remove macvim
brew install macvim --env-std --override-system-vim
pip install --user git+git://github.com/Lokaltog/powerline --verbose
Install the fonts by downloading them (https://github.com/Lokaltog/powerline-fonts/tree/master/Meslo), click on them, and then click install in the application that opens.
Add the following to your dot files
set rtp+=/usr/local/lib/python2.7/site-packages/powerline/bindings/vim
if has("gui_running")
let s:uname = system("uname")
if s:uname == "Darwin\n"
set guifont=Meslo\ LG\ S\ for\ Powerline
endif
endif
Note: Use your desired font in place of Meslo above. The first line is needed for all vim and the next few lines are needed for MacVim GUI.
. /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
source '/usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'
I needed to do this because my Fonts were not working. Without this it looked like ↓
- git clone https://github.com/gnachman/iTerm2
- start XCode
- open the iTerm.xcodeproj
- Click Run
It will build and launch iTerm. Then copy the app to /Applications. It will be something like:
mv /Users/wmernagh/Library/Developer/Xcode/DerivedData/iTerm-dmqofiayvqouzqakzaudepvpnfgb/Build/Products/Development/iTerm.app /Applications
In Preferences > Profiles > Text and select the fonts:
If all goes well it should look like this: