Skip to content

Instantly share code, notes, and snippets.

@bergpb
Created March 2, 2025 16:41
Show Gist options
  • Save bergpb/6674732b4f810056bf2f3340512097e3 to your computer and use it in GitHub Desktop.
Save bergpb/6674732b4f810056bf2f3340512097e3 to your computer and use it in GitHub Desktop.
#!/bin/bash
GITHUB_URL=https://github.com
NF_REPO=ryanoasis/nerd-fonts
NF_VERSION=v3.2.1
NF_NAME=FiraCode
TMP_FONT_FOLDER=tmp_font_folder
# Initial repository configuration
termux-change-repo
dpkg --configure -a
pkg upgrade
# Install common packages
pkg install -y wget\
vim\
openssh
# Download FiraCode font and configure it
mkdir $TMP_FONT_FOLDER
wget $GITHUB_URL/$NF_REPO/releases/download/$NF_VERSION/$NF_NAME.zip \
-O $TMP_FONT_FOLDER/$NF_NAME.zip
unzip $TMP_FONT_FOLDER/$NF_NAME.zip -d $TMP_FONT_FOLDER
mv $TMP_FONT_FOLDER/FiraCodeNerdFont-Regular.ttf ~/.termux/font.ttf
termux-reload-settings
rm -rf $TMP_FONT_FOLDER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment