termux-install/install.sh
2022-09-21 13:05:46 +02:00

39 lines
958 B
Bash
Executable file

#!/data/data/com.termux/files/usr/bin/bash
# author: Daniel Sommer <daniel.sommer@velvettear.de>
# license: MIT
# exit on error
set -e
printf "> upgrading installed packages...\n"
pkg upgrade
printf "> installing additional packages...\n"
pkg install wget curl tsu htop neovim git zsh openssh
printf "> cleaning package cache...\n"
pkg clean
printf "> changing shell to 'zsh'...\n"
chsh -s "zsh"
printf "> changing repositories...\n"
termux-change-repo
printf "> configuring git...\n"
git config --global user.name "velvettear"
git config --global user.email "daniel.sommer@velvettear.de"
git config --global credential.helper store
printf "> cloning git repository...\n"
git clone "https://git.velvettear.de/velvettear/termux.git" "$HOME/tmp"
find "$HOME/tmp" -exec mv '{}' "$HOME"
rm -rf "$HOME/tmp"
printf "> initializing submodule(s)...\n"
cd "$HOME"
git submodule update --init
read -p "> script executed successfully - restart termux now!"