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