From 7b6e693735ee55099eccb5457ea2afd092ed88c3 Mon Sep 17 00:00:00 2001 From: Vivian Elisabeth H <36878099+SparkleDEV@users.noreply.github.com> Date: Wed, 31 Dec 2025 02:39:17 +0100 Subject: [PATCH] Made setup script machine agnostic --- setup.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 0042622..00e9f1e 100755 --- a/setup.sh +++ b/setup.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +set -e + +DOTFILES_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" + if ! command -v paru &>/dev/null; then echo "Installing paru" sudo pacman -S base-devel git --needed --noconfirm @@ -14,7 +18,7 @@ fi echo "Installing packages" sudo -v -paru -S --noconfirm --needed - <$HOME/.dotfiles/packages.txt +paru -S --noconfirm --needed - <$DOTFILES_DIR/packages.txt echo "Changing default shell" sudo chsh -s /bin/zsh $USER @@ -27,5 +31,5 @@ sudo cp /usr/lib/systemd/user/arrpc.service /etc/systemd/system/arrpc.service sudo systemctl enable arrpc --now echo "Applying stow" -cd $HOME/.dotfiles +cd $DOTFILES_DIR stow fastfetch fuzzel ghostty godot hyfetch mangohud niri nvim oh-my-posh waybar wofi zsh