Installing Nerd Font in Termux: A Step-by-Step Guide

Posted by Chaitanya Shahare on Mon, Feb 6, 2023

Termux is a popular terminal emulator app for Android devices that allows users to run a variety of Linux tools on their mobile devices. However, by default, Termux uses a plain font, which can be less visually appealing.

Enter Nerd Fonts, a collection of specially designed fonts that adds extra characters and symbols to the standard font. Nerd Fonts are ideal for developers and power users who want to make their terminal experience more visually appealing and easier to use.

In this blog post, we will guide you through the process of installing a Nerd Font in Termux. Let’s get started!

Install wget

Run the following command in Termux:

$ pkg install wget

Wget nerd font

For simplicity we will be using Source Code Pro nerd font. Run the following commands:

First go to .termux directory

$ cd ~/.termux

Now wget the font

$ wget 'https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/SourceCodePro/Regular/complete/Sauce%20Code%20Pro%20Nerd%20Font%20Complete.ttf'

Rename font

Now rename to font.ttf

$ mv Sauce\ Code\ Pro\ Nerd\ Font\ Complete.ttf font.ttf

Reload settings

To reload termux settings,

$ termux-reload-settings

Restart termux

Finally, restart Termux for the changes to take effect. You should now see the Nerd Font in use in your Termux terminal.

Congratulations! You have successfully installed a Nerd Font in Termux. This will make your terminal experience more visually appealing and easier to use. If you have any questions or issues with the process, feel free to leave a comment below.