dotfiles/fedora-install.sh

32 lines
723 B
Bash
Raw Normal View History

2022-01-08 17:44:12 +00:00
#!/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..."
2022-01-08 17:44:12 +00:00
cd -- "$(dirname -- $0)"
mkdir -p "$HOME/.config/zsh" # Symlink only the individual files instead of the entire directory
2022-01-08 17:44:12 +00:00
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!"