
The powerline gives special geeky feel to the inner self. You can set the powerline to your terminal
prompt, vim
status or more.
I have given the following steps by which you can set your powerline
to your terminal
, vim
or tmux
.
Steps to install
- Install the powerline using pip3, wget the fonts and apply them system wide.
1
2
3
4
5
6
| $sudo -H pip3 install git+https://github.com/powerline/powerline.git
$wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
$wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
$sudo mv PowerlineSymbols.otf /usr/share/fonts/
$sudo fc-cache -vf /usr/share/fonts/
$sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d/ |
- Get the location of installed powerline
1
| $pip show powerline-status |
Name: powerline-status
Version: 2.6.dev9999-git.b-5198b50463c7a29a9f5ef94bbc45a995223dac2d-
Summary: The ultimate statusline/prompt utility.
Home-page: https://github.com/powerline/powerline
Author: Kim Silkebaekken
Author-email: kim.silkebaekken+vim@gmail.com
License: MIT
Location: /usr/local/lib/python3.5/dist-packages
Requires:
Enable Powerline on Bash Shell
- Add the following code in
~/.bashrc
1
2
3
4
5
| export TERM="screen-256color"
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/local/lib/python3.5/dist-packages/powerline/bindings/bash/powerline.sh |
Enable Powerline for Vim
- Add the following code in
~/.vimrc
1
2
3
| set rtp+=/usr/local/lib/python3.5/dist-packages/powerline/bindings/vim/
set laststatus=2
set t_Co=256 |
Enable Powerline for tmux
- Add the following code in
~/.tmux.conf
1
2
| source /usr/local/lib/python3.5/dist-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "screen-256color" |
References
- https://www.tecmint.com/powerline-adds-powerful-statuslines-and-prompts-to-vim-and-bash/
- https://www.youtube.com/watch?v=_D6RkmgShvU