#!/data/data/com.termux/files/usr/bin/bash # author: Daniel Sommer # license: MIT # exit on error set -e printf "> upgrading installed packages...\n" pkg upgrade printf "> changing repositories...\n" termux-change-repo printf "> installing additional packages...\n" pkg install wget curl tsu htop neovim git zsh openssh printf "> cleaning package cache...\n" pkg autoclean pkg clean printf "> changing shell to 'zsh'...\n" chsh -s "zsh" 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" -type d -not -wholename "$HOME/tmp" -exec mv -f '{}' "$HOME" \; find "$HOME/tmp" -type d -not -wholename "$HOME/tmp" -exec mv -f '{}' "$HOME" \; rm -rf "$HOME/tmp" printf "> initializing submodule(s)...\n" cd "$HOME" git submodule update --init read -p "> script executed successfully - restart termux now!"