Technology and Thoughts

Configuring powerline on Fedora

04 Mar 2014

I wanted to checkout powerline, as lately I’ve seen several great looking screenshots.

This is what I had to do to get it working on Fedora 20.

Install the packages

# yum install powerline
# yum install vim-plugin-powerline

Setting up for bash shell

$ vim ~/.bashrc
# add the following to end of file

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

Setting up for vim

$ vim ~/.vimrc

# add to end of file
set rtp+=/usr/lib/python2.7/site-packages/powerline/bindings/vim
set laststatus=2

Setting up for bash to display git branches

$ cp -r /usr/lib/python2.7/site-packages/powerline/bindings/config_files/* ~/.config/powerline/
$ vim ~/.config/powerline/config.json
# go to line 28
"theme": "default"
to
"theme": "default_leftonly"

That should be all!