From 0172500af45be426b07092fe7f690f90b10a2962 Mon Sep 17 00:00:00 2001 From: the_4n0nym0u53 Date: Sun, 23 Jan 2022 19:28:22 +0100 Subject: [PATCH] Termux install script --- termux-install.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 termux-install.sh diff --git a/termux-install.sh b/termux-install.sh new file mode 100755 index 0000000..6686629 --- /dev/null +++ b/termux-install.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +if [ "$(uname -o)" != "Android" ]; then + echo "This script is only intended to be used for a full setup in Termux for Android. Quitting..." + exit 1 +fi + +echo "Configuring directories..." + +cd -- "$(dirname -- $0)" +set -- "nvim" "scripts" "zsh" +mkdir -p "$HOME/.config/zsh" # Symlink only the individual files instead of the entire directory + +sleep 0.5 +echo "Creating the symlinks with stow..." + +for pkg in "$@"; do + echo "* Stowing $pkg" + stow -t "$HOME" --ignore="README.md" "$pkg" + sleep 0.1 +done + +sleep 0.4 +echo "Making scripts executable..." + +chmod +x scripts/.local/bin/update.sh + +sleep 0.5 +echo "Done!"