Skip to content

Instantly share code, notes, and snippets.

@fdlmhmd29
Forked from mrkara/Powerline.md
Last active December 23, 2021 13:36
Show Gist options
  • Save fdlmhmd29/649381275e1bf927bb49e250aa2d8929 to your computer and use it in GitHub Desktop.
Save fdlmhmd29/649381275e1bf927bb49e250aa2d8929 to your computer and use it in GitHub Desktop.
Install Powerline on Debian 9 Stretch
  1. Install python pip: sudo apt-get install python-pip

  2. Install powerline-status: sudo pip install powerline-status

  3. Install fonts-powerline sudo apt-get install fonts-powerline

  4. Add these lines to respective files:

.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

(If the .vimrc file doesn't exist, create it manually.) (Change the python version according to the one you are using.)

.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  

(optional) .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"

Credits

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