omarchy/migrations/1756103168.sh
David Heinemeier Hansson f4ea58bdd0 Doesn't work with yay
2025-08-25 13:55:01 +02:00

7 lines
204 B
Bash

echo "Allow pacman -Sy without sudo to easier installs"
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
EOF
sudo chmod 440 /etc/sudoers.d/repositories