From 5debd669ff999910003b174e1f0012c95cb0468c Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 3 May 2025 16:16:02 +1000 Subject: [PATCH] conf: add termux installation script --- conf.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/conf.sh b/conf.sh index 06d41bd..c60f36d 100755 --- a/conf.sh +++ b/conf.sh @@ -37,13 +37,32 @@ update_packages() { 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 usage: -update update packages on your system" +update update packages on your system +install-termux update packages on your system" if [ "$1" = "update" ]; then update_packages +elif [ "$1" = "install-termux" ]; then + install_termux else echo "$HELPTEXT" fi