termux-install/install.sh

41 lines
1 KiB
Bash
Raw Normal View History

2022-09-21 13:05:46 +02:00
#!/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 "> changing repositories...\n"
termux-change-repo
2022-09-21 13:05:46 +02:00
printf "> installing additional packages...\n"
pkg install wget curl tsu htop neovim git zsh openssh rsync
2022-09-21 13:05:46 +02:00
printf "> cleaning package cache...\n"
pkg autoclean
2022-09-21 13:05:46 +02:00
pkg clean
2022-09-21 14:48:14 +02:00
printf "> cleaning motd...\n"
printf "" > "/data/data/com.termux/files/usr/etc/motd"
2022-09-21 13:05:46 +02:00
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"
2022-09-21 14:36:31 +02:00
git clone --recursive "https://git.velvettear.de/velvettear/termux.git" "$HOME/tmp"
printf "> moving files and cleaning up...\n"
rsync -av "$HOME/tmp/" "$HOME"
2022-09-21 13:05:46 +02:00
rm -rf "$HOME/tmp"
read -p "> script executed successfully - restart termux now!"