Install Essential Packages

To start customizing your Termux terminal, install the necessary packages. First, update your Termux packages to ensure everything is up to date:

mkdir .config
pkg install getconf
pkg install starship

To activate the Starship prompt, add the following line to your .bashrc file:

echo 'eval "$(starship init bash)"' >> ~/.bashrc

Customize Your Starship Prompt

To further personalize your terminal, visit the Starship Presets page to choose a theme you like. Once you’ve selected a theme, paste the provided configuration command into your .bashrc file:

For example, if the theme you choose provides the following command:

starship preset pastel-powerline -o ~/.config/starship.toml

Paste this command to your terminal to apply the theme.

This customization will give your terminal a unique appearance according to the selected theme.

Install Nerd Fonts

Nerd Fonts are a great way to add icons and other visual elements to your terminal. To install them in Termux, use the following repository:

pkg install curl ncurses-utils zip
curl -fsSL https://raw.githubusercontent.com/arnavgr/termux-nf/main/install.sh | bash

After installation, run the following command to list available fonts:

getnf

Choose your desired font, and your Termux terminal will now have icons.

Enhance Terminal with LSD

LSD (LSDeluxe) is a modern alternative to the classic 'ls' command with icons support:

pkg install lsd

To use LSD by default, add the following alias to your .bashrc:

echo 'alias ls="lsd"' >> ~/.bashrc

After making these changes, type exit and press enter to close Termux, then reopen it to apply the new settings.