Termux install script

This commit is contained in:
the_4n0nym0u53 2022-01-23 19:28:22 +01:00
parent f3038f239a
commit 0172500af4
No known key found for this signature in database
GPG Key ID: 35EE09F5481049BB
1 changed files with 29 additions and 0 deletions

29
termux-install.sh Executable file
View File

@ -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!"