Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile. https://github.com/powerline/powerline
sudo apt-get install python-pip python git
Ubuntu version greater than 14.04
# sudo apt-get install powerline
MacOS X
# git clone https://github.com/a110605/powerline-plugin
# cd powerline-plugin
# ./install.py
# vim ~/.bash_profile
Append the following code to .bash_profile
function powerline_shell() {
export PS1="$(~/powerline-shell/powerline-shell.py $? 2> /dev/null)"
}
export PROMPT_COMMAND="powerline_shell; $PROMPT_COMMAND"
# git clone https://github.com/a110605/powerline-font
# cd powerline-font
# ./install.py
$ git clone https://github.com/a110605/tmux-powerline.git
Now append your ~/.tmux.conf to use the scripts:
set-option -g status on
set-option -g status-interval 2
set-option -g status-justify "centre"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-left "#(~/path/to/tmux-powerline/powerline.sh left)"
set-option -g status-right "#(~/path/to/tmux-powerline/powerline.sh right)"
More detail install information, visit Powerline Official Documents and tmux-powerline