Powerline Plugin in Ubuntu

owerline Plugin is used to display information in a beautiful way in editors such as vim, tmux, bash, zsh. Powerline Plugin adds beautiful colored statusline in editors, like this.


To use powerline plugin , follow following steps:

Install python-pip and git:

sudo apt-get install python-pip git

Install powerline plugin from git. Run:

pip install --user git+git://github.com/Lokaltog/powerline

In terminal run:

cd ~/.local/bin 
sudo apt-get install gksu
gksudo gedit ~/.profile

Add following line at the end of ~/.profile file:
if [ -d "$HOME/.local/bin" ]; then

For Font Installation run following command in terminal:

wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf
mkdir -p ~/.fonts/ && mv PowerlineSymbols.otf ~/.fonts/
fc-cache -vf ~/.fonts
mkdir -p ~/.config/fontconfig/conf.d/ && mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/

USAGE: After installation of Powerline and Fonts, Edit your ~/.vimrc
~/.bashrc, ~/.zshrc. Just add required lines in your file for powerline working.

  • Vim statusline:
    Add following to your ~/.vimrc or /etc/vim/vimrc:

    set rtp+=$HOME/.local/lib/python2.7/site-packages/powerline/bindings/vim/ " Always show statusline set laststatus=2 " Use 256 colours (Use this setting only if your terminal supports 256 colours) set t_Co=256






  • Bash prompt:
    Add the following line to your ~/.bashrc or /etc/bash.bashrc:

    if [ -f ~/.local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh ]; then
        source ~/.local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh
  • Tmux statusline:
    Add the following line to your ~/.tmux.conf:
 source ~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf set-option -g default-terminal "screen-256color"  

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s