Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tankhiwale/ac85764bdd725f9b2314598fc22501ff to your computer and use it in GitHub Desktop.
Save tankhiwale/ac85764bdd725f9b2314598fc22501ff to your computer and use it in GitHub Desktop.
Powerline font install for Ubuntu 16.10 (also confirmed working for 17.04, 17.10, 18.04)

Install Powerline fonts for Z shell

If you're using Z Shell and a special prompt theme designed with Powerline fonts in mind, you'll need to install them on your machine. These are the most clear and cut-down instructions that I've found to work with Ubuntu 16.10 (also confirmed working for 17.04, 17.10, 18.04) and all credit goes to renshuki's Ubuntu 14.04 + Terminator + Oh My ZSH with Agnoster Theme gist. I've extracted just the Powerline font instructions - my personal setup uses Prezto instead of Oh My ZSH (not included here).

Get the font and config files

cd ~
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mv PowerlineSymbols.otf ~/.fonts/
mkdir -p .config/fontconfig/conf.d #if directory doesn't exists

Clear fonts cache

fc-cache -vf ~/.fonts/

Move config file

mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/

Finito

Restart your terminal and your powerline fonts should be working.

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