From bba4ee64b81f38dc38306d51ff9ae6250b542505 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Thu, 24 Apr 2025 15:30:06 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-24 15:30:05 --- .config/fish/functions/update.fish | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.config/fish/functions/update.fish b/.config/fish/functions/update.fish index b4aa5a8f..07b78ff0 100644 --- a/.config/fish/functions/update.fish +++ b/.config/fish/functions/update.fish @@ -17,14 +17,15 @@ paru -Syu' 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 end - $termcmd $cmd &>/dev/null & + if string match -q paru -- "$cmd" + $cmd + else + $termcmd $cmd &>/dev/null & + end end wait break