Add fedora-install.sh

This commit is contained in:
the_4n0nym0u53 2022-01-08 18:44:12 +01:00 committed by GitHub
parent aea7679e8e
commit f109069ff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 0 deletions

31
fedora-install.sh Normal file
View File

@ -0,0 +1,31 @@
#!/bin/sh
if [ "$(lsb_release -si)" != "Fedora" ]; then
echo "This script is only intended to be used for a full setup on Fedora Workstation. Quitting..."
exit 1
fi
echo "Configuring directories..."
cd -- "$(dirname -- $0)"
ZDOTDIR="$HOME/.config/zsh"
mkdir -p "$ZDOTDIR" # Symlink only the individual files instead of the entire directory
sleep 0.5
echo "Creating the symlinks with stow..."
set -- "nvim" "scripts" "zsh"
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/clear-clipboard.sh
chmod +x scripts/.local/bin/update.sh
chmod +x scripts/.local/bin/vfio.sh
sleep 0.5
echo "Done!"