Powerline is a statusline plugin for Vim, and provides statuslines and prompts for several other applications, including zsh, bash, fish, tmux, IPython, Awesome, i3 and Qtile.
Install and .
Add the following to your bashrc:
powerline-daemon -q POWERLINE_BASH_CONTINUATION=1 POWERLINE_BASH_SELECT=1 . /usr/share/powerline/bindings/bash/powerline.sh
Close and reopen your terminal and it should be working. If not, check the Powerline bash prompt usage instructions to ensure that it has not changed.
Add the following to your zshrc:
powerline-daemon -q . /usr/share/powerline/bindings/zsh/powerline.zsh
ZSH_THEME=oh-my-zsh theme"line in your
~/.zshrc. Similarly if you are using , do not forget to insert
prompt offbefore the above addition.
Add the following to your config.fish:
set fish_function_path $fish_function_path "/usr/share/powerline/bindings/fish" source /usr/share/powerline/bindings/fish/powerline-setup.fish powerline-setup
Restart your terminal emulator and it must work.
Add the following to your tmux.conf:
- It is sufficient to just add this to the tmux configuration: adding anything to your shell configuration is not necessary.
- Watch out for interfering styles in the tmux configuration (i.e.
let g:powerline_pycmd="py"to your
- By default, the statusline (and therefore Powerline) only appears when there are multiple windows open. To show it all the time, use
- This package installs Powerline to
/usr/share/vim/vimfiles/plugin, which vim is configured to check by default, meaning this will install Powerline in vim for all users and may require additional configuration. If this is not intended, consider either using a vim plugin manager, or installing the package and adding
set rtp+=/usr/share/powerline/bindings/vimto your
The official Powerline documentation refers to
powerline_root, which for Arch Linux is the following:
To customize Powerline, copy a default configuration to
$XDG_CONFIG_HOME/powerline/.... Then edit the file to your liking.
Example to customize Powerline for tmux:
$ mkdir -p ~/.config/powerline/themes/tmux/ $ cp /usr/lib/python3.x/site-packages/powerline/config_files/themes/tmux/default.json ~/.config/powerline/themes/tmux/default.json
Tips and tricks
Using a vim plugin manager
There are many vim plugin managers available which are able to install and update Powerline, assuming you are using a version of vim with Python support or you install
call plug#begin('path/to/vim/plugins/directory') Plug 'powerline/powerline' call plug#end()
path/to/vim/plugins/directory with the actual directory, such as
~/.vim/plugged, and run the vim-plug command
:PlugInstall within vim. This will download Powerline from the Powerline GitHub page to the specified plugin directory and add it to vim.
A reduced set of fonts for the text console are available inAUR.
There is currently one known alternative to Powerline — Vim-airline. It is a part of and can be installed separately as . Optionally, install .
Fonts: glyphs missing
If you installed locale is set. Restart your session to see the changes.but you notice missing glyphs, make sure your