- Install pip
sudo apt-get install python-pip
orwget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
- Install powerline
sudo pip install powerline-status
- Download and install fonts
git clone https://github.com/powerline/fonts.git && cd fonts && sh ./install.sh
- 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"