• Home
  • Archive
  • Tools
  • Contact Us
  • Forum

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
The Customize Windows > Apple > Installing Powerline on OS X 10.10 (Yosemite)

By Abhishek Ghosh April 14, 2015 12:35 am Updated on April 14, 2015

Installing Powerline on OS X 10.10 (Yosemite)

Advertisement

Here is Step by Step Guide For Installing Powerline on OS X 10.10 (Yosemite) Including Managing the Python Path From Oh My ZSH dot File. Previously, we summarized how to install iTerm2, Homebrew and ZSH on OS X 10.8, for natural reason; some stuffs might give error if you try to install Powerline.

 

Installing Powerline on OS X 10.10 : Managing Python Installation

 

OS X by default is shipped with own versions of some UNIX softwares including Python. You should not try to uninstall them. OS X Python is located at for Global usage, Homebrew Python will get install at /usr/local/lib/. The most important step is to run brew linkapps python command.

If you have installed Python via Homebrew and forgotten what you did, remove it first. When we will System’s Python, we will use zsh by typing zsh at Terminal. We will only add the needed for powerline part :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## needed for powerline starts
source /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
export PATH=/usr/local/bin:$PATH
  # for Python
launchctl setenv PATH $PATH
## needed for powerline ends
# sample zsh config
ZSH=$HOME/.oh-my-zsh
  # zsh theme
ZSH_THEME="robbyrussell"
export UPDATE_ZSH_DAYS=10
COMPLETION_WAITING_DOTS="true"
  # zsh plugin
plugins=(git colored-man colorize github jira vagrant virtualenv pip python brew osx zsh-syntax-highlighting cake git-flow git-extras npm node theme web-search battery)
source $ZSH/oh-my-zsh.sh
  # go
export CC=clang
GOPATH=/usr/local/bin/go
GOROOT=/usr/local/bin
source /Users/abhishekghosh/.iterm2_shell_integration.zsh
  # Ruby
export PATH="$PATH:$HOME/.rvm/bin"

Installing Powerline on OS X 10.10 (Yosemite)

Add the lines missing to .zshrc, but do not source it.
First and foremost important points are to rightly fix Homebrew and update, set Python path rightly and then install Python, update Pip etc. via Homebrew :

Advertisement

---

Vim
1
brew install python

If you face problem in the next steps, that is usually due to error in the above setup. It is really painful to fix, last option is re-installing Homebrew when Python gets fully abnormal – which python is returning /usr/local/bin/python but running pip install is installing stuffs on System Python’s path. Do not try to remove the System’s OS X related Python. Do whatever with Homebrew.

We hope that you have updated Xcode command line tools.

 

Steps For Installing Powerline on OS X 10.10

 

Next need is to install a set of patched Font :

Vim
1
https://github.com/Lokaltog/powerline-fonts # copy url in text editor first

Very easy. From iTerm’s iTerm > Preferences… menu, change the Font to any patched Font. Next, you need to do these :

Vim
1
2
brew install vim --with-python --with-ruby --with-perl
brew install macvim --env-std --override-system-vim

If you work in this way, in future it is unlikely that you will ever call us bad names after learning vi, in case you are not mastered vim yet. We have no .vimrc file. We need no such.

Next is Powerline :

Vim
1
2
3
pip install powerline-status
## below is dev version
# pip install --user git+git://github.com/powerline/powerline

More Powerline specific guide is here :

Vim
1
http://powerline.readthedocs.org/en/latest/installation.html # copy url in text editor first

First do a cat :

Vim
1
cat /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh

If it returns something then source .zshrc :

Vim
1
source .zshrc

We added the needed lines on .zshrc before. If you dislike Powerline or want to “pause” usage, then uncomment the source /usr/local/lib/python...zsh/powerline.zsh line and source the .zshrc.
The text editor shown in screenshot is using our nano syntax highlighting repo. Whether you’ll use tmux or vi; this is not possible to predict. This is the basic setup.

Tagged With how to install powerline mac os x yosemite , install powerline mac os , osx powerline

This Article Has Been Shared 208 Times!

Facebook Twitter Google+ Pinterest

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Google Plus - Abhishek Ghosh1 and on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Installing Powerline on OS X 10.10 (Yosemite)

  • Give Homebrew a Graphical Interface With CakeBrew

    CakeBrew is a nice free software for managing packages of HomeBrew Package Manager from a Graphical User Interface (GUI). Here is details.

  • OS X Yosemite Installation Stuck Fix

    If Your OS X Yosemite Installation Stuck at Minutes Remaining, You Should Check the Log and Fix It Accordingly. Read This Guide To Get Helped.

  • How to Use tmux on Mac

    tmux is used to multiplex several virtual consoles to access multiple terminal sessions inside a single terminal window or remote terminal.

  • OS X Yosemite Review : Steve Jobs Really Left

    Here is a hard OS X Yosemite Review pointing the importance of Steve Jobs absence. Apple forgot the premium clients using Mac Pro and MacBook Pro.

  • Work With root Username on OS X Terminal/iTerm2

    If you want to use OS X in a kind of Linux or BSD way, there is way to become the root user. This guide is intended for the advanced users.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Google+ or Twitter to join the conversation right now!

If you want to Advertise on our Article or want Business Partnership, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Google+ (13.7k Followers)
  • Pinterest (11.4K Followers)
  • Twitter (4.7k Followers)
  • Facebook (4.9k Followers)
  • LinkedIn (3.2k Followers)
  • YouTube (1.5k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Wearables and Internet of Things : Part II February 13, 2019
  • LED Bar Graph Progress Test : Arduino & Transistors February 12, 2019
  • New and Effective SEO Metrics to Follow Engagement and Content Performance February 4, 2019
  • 5 Tips to Fully Leverage the Reach of SMS Marketing for Businesses January 31, 2019
  • Difference Between Object Storage and Block Storage January 17, 2019

About This Article

Title: Installing Powerline on OS X 10.10 (Yosemite)
2015-04-14

Author: Abhishek Ghosh
Subjects: Apple

Is Part Of:


TheCustomizeWindows,

Tuesday, April 14th, 2015,
Vol.1(01),
p.1–43834 [IoT Ready Journal]


Source:The Customize Windows
ISSN: 0019-5847 ;
E-ISSN: 0019-5847 ;
Publisher:
jima.in

Cite this article as: Abhishek Ghosh, "Installing Powerline on OS X 10.10 (Yosemite)," in The Customize Windows, April 14, 2015, February 17, 2019, https://thecustomizewindows.com/2015/04/installing-powerline-on-os-x-10-10-yosemite/.

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.


PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

web analysis

Copyright © 2019 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy