2022-01-26 13:42:41 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-02-05 15:06:53 +00:00
|
|
|
if [ "$(lsb_release -si)" != "Debian" ] && [ "$(lsb_release -si)" != "Ubuntu" ]; then
|
|
|
|
echo "This script is only intended to be used for a full setup on Debian or Ubuntu. Quitting..."
|
2022-01-26 13:42:41 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Configuring directories..."
|
|
|
|
|
|
|
|
cd -- "$(dirname -- $0)"
|
2022-02-28 22:01:27 +00:00
|
|
|
set -- "scripts" "zsh"
|
2022-01-26 13:42:41 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
sleep 0.5
|
|
|
|
echo "Done!"
|