Skip to content

Instantly share code, notes, and snippets.

@dtrunk90
Last active October 21, 2021 12:45
Show Gist options
  • Save dtrunk90/76ac769bf9d1b3f1142b48df5c0575e4 to your computer and use it in GitHub Desktop.
Save dtrunk90/76ac769bf9d1b3f1142b48df5c0575e4 to your computer and use it in GitHub Desktop.
Ubuntu: Powerline + Trueline Full Setup
  1. Install powerline + powerline-gitstatus using sudo apt install -y powerline powerline-gitstatus
  2. 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
  3. Rebuild font cache using fc-cache -fv
  4. Get trueline script using wget https://raw.githubusercontent.com/petobens/trueline/master/trueline.sh -P ~/
  5. 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
  1. Append to ~/.vimrc:
python3 from powerline.vim import setup as powerline_setup
python3 powerline_setup()
python3 del powerline_setup

set laststatus=2
  1. 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:

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