Skip to content

Instantly share code, notes, and snippets.

@simion-chis
Forked from mrkara/Powerline.md
Last active July 17, 2019 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simion-chis/12fa0be91fed8ed6f86327d8071264e1 to your computer and use it in GitHub Desktop.
Save simion-chis/12fa0be91fed8ed6f86327d8071264e1 to your computer and use it in GitHub Desktop.
Install Powerline on Debian 9 Stretch
  1. Install pip sudo apt-get install python-pip
  2. Install powerline sudo pip install powerline-status
  3. Install fonts sudo apt-get install fonts-powerline
  4. Add these lines to respective files:

.vimrc - You need to have vim compiled with python support. Install vim-nox

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 `which powerline-daemon` ]; then  
powerline-daemon -q  
POWERLINE_BASH_CONTINUATION=1  
POWERLINE_BASH_SELECT=1  
fi  
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  

.tmux.conf

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

Credits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment