From f109069ff8b92dafb30c983e0837a3639586d231 Mon Sep 17 00:00:00 2001 From: the_4n0nym0u53 Date: Sat, 8 Jan 2022 18:44:12 +0100 Subject: [PATCH] Add fedora-install.sh --- fedora-install.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 fedora-install.sh diff --git a/fedora-install.sh b/fedora-install.sh new file mode 100644 index 0000000..f8a9658 --- /dev/null +++ b/fedora-install.sh @@ -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!"