diff --git a/README.md b/README.md index 02fa1f9..1a52584 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,8 @@ 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` +**one liner:** +`bash -c "$(curl -sSL https://git.velvettear.de/velvettear/termux-install/raw/branch/master/install.sh)"` + +**qr code:** +![qrcode](qrcode.png) diff --git a/install.sh b/install.sh index 068ca06..e77e68b 100755 --- a/install.sh +++ b/install.sh @@ -9,18 +9,19 @@ 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 "> 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" @@ -28,7 +29,8 @@ 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" +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" diff --git a/qrcode.png b/qrcode.png new file mode 100644 index 0000000..62869ca Binary files /dev/null and b/qrcode.png differ