Last active
May 29, 2025 01:01
-
-
Save wm/4750511 to your computer and use it in GitHub Desktop.
Revisions
-
wm revised this gist
Feb 11, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ ## Install dependencies 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 -
wm revised this gist
Feb 10, 2013 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -43,6 +43,15 @@ Add the following to your dot files ### .vimrc 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. ### .zshrc . /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh @@ -72,9 +81,12 @@ In Preferences > Profiles > Text and select the fonts: If all goes well it should look like this: #### vim (MacVim launched as vi or vim in the iTerm2)  ### MacVim GUI  #### zsh  -
wm revised this gist
Feb 10, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Change it to these two lines: 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 -
wm revised this gist
Feb 10, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ I needed to edit the formula to specify which python to build against. brew edit macvim Edit it as follows ([tip is from here](http://superuser.com/questions/440981/how-can-i-use-the-homebrew-python-version-with-homebrew-macvim-on-snow-leopard/440982#440982)) Find the arguments list (begins with args = %W\[ ...), and modify this line: -
wm revised this gist
Feb 10, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -50,7 +50,7 @@ Add the following to your dot files source '/usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf' ## Installing iTerm from source I needed to do this because my Fonts were not working. Without this it looked like ↓  - git clone https://github.com/gnachman/iTerm2 -
wm created this gist
Feb 10, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,82 @@ ## Install dependencies brew install cmake brew install python 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" ## Reinstall MacVim with brew I needed to edit the formula to specify which python to build against. brew edit macvim Edit it as follows (tip is from ) 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 ## Install powerline pip install --user git+git://github.com/Lokaltog/powerline --verbose ## Install fonts 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. ## Usage Add the following to your dot files ### .vimrc set rtp+=/usr/local/lib/python2.7/site-packages/powerline/bindings/vim ### .zshrc . /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh ### .tmux.conf source '/usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf' ## Installing iTerm from source I needed to do this because my Fonts were working. They looked like this ↓  - 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 ## Configure iTerm to use the powerline fonts In Preferences > Profiles > Text and select the fonts:  ## Result If all goes well it should look like this: #### vim  #### zsh  #### tmux 