Last active
October 25, 2024 19:12
-
-
Save bergpb/cf8d32ed7eead92d7e31c8668cdd326f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GITHUB_URL=https://github.com | |
NF_REPO=ryanoasis/nerd-fonts | |
NF_VERSION=v3.2.1 | |
NF_NAME=FiraCode | |
TMP_FONT_FOLDER=$HOME/tmp_font_folder | |
echo "Make sure to keep closer to the device, a few manual steps may be necessary!!!" | |
sleep 10 | |
# Initial repository configuration | |
termux-change-repo | |
dpkg --configure -a | |
pkg upgrade | |
# Install common packages | |
pkg install 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 temp_font_folder | |
mv $TMP_FONT_FOLDER/FiraCodeNerdFont-Regular.ttf $HOME/.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