Skip to content

Instantly share code, notes, and snippets.

@romkatv
Created August 15, 2019 14:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romkatv/81a7c445be629510457589031bd6a4ef to your computer and use it in GitHub Desktop.
Save romkatv/81a7c445be629510457589031bd6a4ef to your computer and use it in GitHub Desktop.
Install Powerlevel10k font on Termux
mkdir -p ~/.termux
curl -fsSL -o ~/.termux/font.ttf 'https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%20Regular.ttf'
termux-reload-settings
@JosiasAurel
Copy link

Too bad. It got my termux UI destroyed. No text showing anymore. I see squares at random positions.

@romkatv
Copy link
Author

romkatv commented Nov 28, 2020

@JosiasAurel That's unfortunate. This might fix it:

rm -f ~/.termux/font.ttf && termux-reload-settings

@JosiasAurel
Copy link

It's okay now. I've fixed that already

@romkatv
Copy link
Author

romkatv commented Nov 28, 2020

@JosiasAurel If you are using Powerlevel10k, simply run p10k configure and agree to install the font when it asks you. There is no need to run the code from this old gist.

@JosiasAurel
Copy link

Okay. But I am trying to get p10k installed on termux. Any help is appreciated 🙏

@romkatv
Copy link
Author

romkatv commented Nov 28, 2020

The official installation instructions should work: https://github.com/romkatv/powerlevel10k#get-started. You don't need to install the font manually, just agree when asked by the wizard to do it for you.

@Zedai00
Copy link

Zedai00 commented Feb 20, 2022

Also see this which is the command run by the official installation
Link

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