Skip to content

Instantly share code, notes, and snippets.

@Semo
Last active January 31, 2024 07:33
Show Gist options
  • Save Semo/571fd39651de68ed14a4fea314586ec8 to your computer and use it in GitHub Desktop.
Save Semo/571fd39651de68ed14a4fea314586ec8 to your computer and use it in GitHub Desktop.
How to install Powerline fonts into CentOS 7

How to install Powerline fonts into CentOS 7

For a Oh-My-Zsh Shell custommized theme, called Spaceship Prompt it's reecommended to install the Powerline Fonts. In a CentOS 7 machine it can be a little more work, than doing it via a package manager.

Clone the latest Font

git clone https://github.com/powerline/fonts.git --depth=1

and install them

cd fonts ./install.sh

To make it available to every user copy it

mkdir /usr/share/fonts cp /root/.local/share/fonts/* /usr/share/fonts

Done (TM)

@ASoldo
Copy link

ASoldo commented Aug 26, 2020

Hi im having a hard time getting it to work. I did manage to set up Powerline as a default but it's broken looking. I did everything you mentioned but no avail. when I type setfont (font_name.pcf.gz) it says bad input file size... what am I doing wrong? I know that they are installed on my machine... I'm doing an experiment with no GUI and im on a virtual machine so yeah...

@Davidwei93
Copy link

For anyone having issues with the final copy try sudo cp -R /root/.local/share/fonts/ /usr/share/

@Semo
Copy link
Author

Semo commented Jan 31, 2024

@Davidwei93 Thank you. Which issue occurred on your system? Unfortunately I don't have any CentOS 7 machines anymore to test it.

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