From dd03a83a23b7743dcde5eacf05cc81c1e0c69834 Mon Sep 17 00:00:00 2001 From: alvinlollo <143326475+alvinlollo@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:37:04 +1100 Subject: [PATCH] Add automatic confirm to update function Update package management commands for Arch and Debian systems to include --noconfirm and improve options. --- configs/.zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/.zshrc b/configs/.zshrc index 7615369..4f0ee44 100644 --- a/configs/.zshrc +++ b/configs/.zshrc @@ -96,13 +96,15 @@ update () { # Update arch based systems with yay AUR helper if command -v pacman >/dev/null && command -v yay >/dev/null; then echo "✅ 'pacman' and 'yay' found. Updating." - sudo pacman -Syu && yay -Syu + sudo pacman -Syu --noconfirm + yay -S --needed --save --answerclean None --answerdiff None - --noconfirm fi # Update on debian based systems if command -v apt >/dev/null; then echo "✅ 'apt' found. Updating." - sudo apt update && sudo apt full-upgrade -y + sudo apt update + sudo apt full-upgrade -y fi # Update Hyprland