- Install powerline + powerline-gitstatus using
sudo apt install -y powerline powerline-gitstatus
- Download the correct NerdFont (the one your Terminal uses; e.g. UbuntuMono) from https://www.nerdfonts.com/font-downloads and extract to
~/.local/share/fonts
- Rebuild font cache using
fc-cache -fv
- Get trueline script using
wget https://raw.githubusercontent.com/petobens/trueline/master/trueline.sh -P ~/
- Append to
~/.bashrc
:
# Powerline configuration
if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
source /usr/share/powerline/bindings/bash/powerline.sh
fi
source ~/trueline.sh
- Append to
~/.vimrc
:
python3 from powerline.vim import setup as powerline_setup
python3 powerline_setup()
python3 del powerline_setup
set laststatus=2
- If you see any weird symbols try changing the Monospace Font in your system settings from e.g. Ubuntu Mono Regular to UbuntuMono NF Regular.
Sources: