Use sudo keepalive to ensure that we don't get a sudo timeout on a long-running install

This commit is contained in:
David Heinemeier Hansson
2026-03-15 15:19:29 +01:00
parent dc820652c1
commit fa17b5b69f
3 changed files with 15 additions and 2 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ pkg_names=$(yay -Slqa | fzf "${fzf_args[@]}")
if [[ -n $pkg_names ]]; then
# Add aur/ prefix to each package name and convert to space-separated for yay
sudo -v
source omarchy-sudo-keepalive
echo "$pkg_names" | sed 's/^/aur\//' | tr '\n' ' ' | xargs yay -S --noconfirm
sudo updatedb
omarchy-show-done