• Home
  • Archive
  • Tools
  • Contact Us

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
You are here:Home » 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 :

Advertisement

---

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 :

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 yosemite using terminal on mac os , how to install powerline mac os x yosemite , install powerline mac os , osx powerline
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him 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)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • How to Install Powerline Fonts, Symbols for Bash on Windows 10

    Installing Powerline Fonts on Windows 10 Needed To Show Glyphs Properly. Here is How to Install Powerline Fonts, Symbols for Bash on Windows 10.

  • Setup Visual Studio Code on Mac For Debugging Arduino, WordPress : Part 1

    Here is How to Setup Visual Studio Code on Mac For Debugging Arduino, WordPress etc Common Things For the iTerm2 + ZSH + Homebrew Users.

  • OpenShift OctoPress Auto install Script

    OpenShift OctoPress Auto install Script is an Advanced Script to Run OctoPress on Free OpenShift PaaS Practically Without Any Knowing Ruby or Git.

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 Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

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

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

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

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