Fixed a bit in install.sh and swapped to yay instead of paru

This commit is contained in:
2026-01-08 23:56:10 +01:00
parent f5c1354cb4
commit 83126e504a
2 changed files with 31 additions and 30 deletions

View File

@@ -4,21 +4,21 @@ set -e
DOTFILES_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
if ! command -v paru &>/dev/null; then
echo "Installing paru"
if ! command -v yay &>/dev/null; then
echo "Installing yay"
sudo pacman -S base-devel git --needed --noconfirm
TEMP_DIR=$(mktemp -d)
git clone https://aur.archlinux.org/paru-bin.git $TEMP_DIR/paru-bin
cd $TEMP_DIR/paru-bin
git clone https://aur.archlinux.org/yay-bin.git $TEMP_DIR/yay-bin
cd $TEMP_DIR/yay-bin
makepkg -si --noconfirm
fi
echo "Installing packages"
sudo -v
paru -S --noconfirm --needed - <$DOTFILES_DIR/packages.txt
yay -S --noconfirm --needed - <$DOTFILES_DIR/packages.txt
echo "Changing default shell"
sudo chsh -s /bin/zsh $USER