initial commit

This commit is contained in:
Daniel Sommer 2022-09-21 13:05:46 +02:00
commit 69512ba3c9
3 changed files with 64 additions and 0 deletions

20
LICENSE.md Normal file
View file

@ -0,0 +1,20 @@
# MIT License
**Copyright (c) 2022 Daniel Sommer \<daniel.sommer@velvettear.de\>**
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.
**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.**

6
README.md Normal file
View file

@ -0,0 +1,6 @@
# termux-install
installation script for termux (android)
**one liner for first time setup:**
`curl "https://git.velvettear.de/velvettear/termux-install/raw/branch/master/install.sh | bash`

38
install.sh Executable file
View file

@ -0,0 +1,38 @@
#!/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!"