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