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
+3 -1
View File
@@ -17,7 +17,9 @@ fzf_args=(
pkg_names=$(pacman -Slq | fzf "${fzf_args[@]}")
if [[ -n $pkg_names ]]; then
# Convert newline-separated selections to space-separated for yay
source omarchy-sudo-keepalive
# Convert newline-separated selections to space-separated for pacman
echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -S --noconfirm
omarchy-show-done
fi