2022-01-08 17:44:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ "$(lsb_release -si)" != "Fedora" ]; then
|
2022-01-26 13:42:41 +00:00
|
|
|
echo "This script is only intended to be used for a full setup on Fedora. Quitting..."
|
2022-01-08 17:44:12 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Configuring directories..."
|
2022-01-08 20:59:42 +00:00
|
|
|
|
2022-01-08 17:44:12 +00:00
|
|
|
cd -- "$(dirname -- $0)"
|
2022-01-22 14:06:48 +00:00
|
|
|
set -- "nvim" "scripts" "zsh"
|
2022-01-08 20:59:42 +00:00
|
|
|
mkdir -p "$HOME/.config/zsh" # Symlink only the individual files instead of the entire directory
|
2022-01-08 17:44:12 +00:00
|
|
|
|
2022-01-22 14:06:48 +00:00
|
|
|
sleep 0.5
|
2022-01-08 17:44:12 +00:00
|
|
|
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/clear-clipboard.sh
|
2022-02-24 12:07:09 +00:00
|
|
|
chmod +x scripts/.local/bin/erase-disk.sh
|
2022-01-08 17:44:12 +00:00
|
|
|
chmod +x scripts/.local/bin/update.sh
|
|
|
|
|
2022-01-22 14:06:48 +00:00
|
|
|
sleep 0.5
|
2022-01-08 17:44:12 +00:00
|
|
|
echo "Done!"
|