Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Powerline on Debian/Ubuntu
  1. Install pip sudo apt-get install python-pip or wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
  2. Install powerline sudo pip install powerline-status
  3. Download and install fonts git clone https://github.com/powerline/fonts.git && cd fonts && sh ./install.sh
  4. Add this lines to respective file
    .vimrc

set rtp+=/usr/local/lib/python2.7/dist-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

.bashrc

if [ -f /usr/local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh ]; then
source /usr/local/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh
fi

.zshrc

if [[ -r /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh ]]; then
source /usr/local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
fi

.tmux.conf

source /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "screen-256color"

@AlexZeitler

This comment has been minimized.

Copy link

commented Feb 3, 2018

In addition I had to use /usr/local/lib/python2.7/dist-packages/powerline/bindings/shell/powerline.sh and sudo apt-get install powerline on Ubuntu 17.10

@paraita

This comment has been minimized.

Copy link

commented Feb 9, 2018

Same as @AlexZeitler I had to use the following command instead:

source /usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "screen-256color"

I'm running Ubuntu 16.04.03

@preston3271

This comment has been minimized.

Copy link

commented Apr 16, 2018

Yes @AlexZeitler the modified path of .../dist-packages/... worked for Ubuntu 17.10. I also used the "wget," method above. Thanks.

@JaDogg

This comment has been minimized.

Copy link

commented Jun 7, 2018

I had to use following..

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/

Taken from https://askubuntu.com/questions/283908/how-can-i-install-and-use-powerline-plugin

@vlad88sv

This comment has been minimized.

Copy link

commented Apr 24, 2019

Ubuntu 19.04

if [ -f /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh ]; then
source /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.