From f0e1240b1453c58b5d1a3081499c58b7e4c97457 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Thu, 24 Apr 2025 15:15:06 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-24 15:15:06 --- .config/fish/functions/update.fish | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.config/fish/functions/update.fish b/.config/fish/functions/update.fish index 4212ca84..b4aa5a8f 100644 --- a/.config/fish/functions/update.fish +++ b/.config/fish/functions/update.fish @@ -1,10 +1,12 @@ function update --description "Update everything" + sudo -v set -l termcmd foot fish -c set -l lines 'cargo install-update -a gup update uv tool upgrade --all -paru -Syu -flatpak update' +fisher update +flatpak update -y +paru -Syu' set -l cmds (string split \n -- $lines | string trim) echo Commands to be run: for i in $cmds @@ -15,6 +17,9 @@ flatpak update' switch $response case y Y for cmd in $cmds + if string match -q paru $cmd + continue + end # max 2 jobs at a time while test (count (jobs -p)) -ge 2 sleep 0.5 @@ -38,4 +43,5 @@ flatpak update' eval $cmd end end + # paru -Syu end