conf: add termux installation script

This commit is contained in:
Nico 2025-05-03 16:16:02 +10:00
parent 69b98022c6
commit 5debd669ff

21
conf.sh
View file

@ -37,13 +37,32 @@ update_packages() {
fi fi
} }
install_termux() {
pkg update -y
pkg upgrade -y
pkg install -y zsh openssh stow neovim zoxide tealdeer file htop jq fzf ripgrep wget ffmpeg imagemagick unzip unar bat ani-cli tmux
cd "$HOME/dots"
stow stow
echo '#!/data/data/com.termux/files/usr/bin/sh
termux-wake-lock
sshd' > /data/data/com.termux/files/home/.termux/boot
chsh -s zsh
echo "done!"
}
HELPTEXT="$0 HELPTEXT="$0
usage: usage:
update update packages on your system" update update packages on your system
install-termux update packages on your system"
if [ "$1" = "update" ]; then if [ "$1" = "update" ]; then
update_packages update_packages
elif [ "$1" = "install-termux" ]; then
install_termux
else else
echo "$HELPTEXT" echo "$HELPTEXT"
fi fi