Installation de powerline :

Powerline étant écrit en Python, il y a un minimum de packages à installer :

1 yum -y install python-pip python

Installation de powerline :

1 sudo pip install --upgrade --user --proxy=http://192.168.1.10:3124 powerline-status
2 sudo pip install --proxy=http://192.168.1.10:3124 argparse

note: ici avec une installation via proxyi et que pour l'utilisateur courant.

Lignes à ajouter dans .bash_profile :

1 export PATH=$PATH:~/.local/bin
2 
3 if [ -f  ~/.local/bin/powerline-daemon ]; then
4         ~/.local/bin/powerline-daemon -q
5         POWERLINE_BASH_CONTINUATION=1
6         POWERLINE_BASH_SELECT=1
7         . ~/.local/lib/python2.6/site-packages/powerline/bindings/bash/powerline.sh
8 fi

note : la dernière est à modifier en fonction de votre version de python.

Il suffit de se reconnecter ou de sourcer le .bash_profile.
Powerline Shell

Bonus tmux

Si vous utilisez tmux, vous pouvez ajouter cela à votre .tmux.conf

1 source .local/lib/python2.6/site-packages/powerline/bindings/tmux/powerline.conf

Powerline Tmux

Bonus Vim

A ajouter dans votre .vimrc :

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

Powerline Vim normal Powerline Vim insert Powerline Vim replace Powerline Vim visual