diff --git a/.config/fish/functions/update.fish b/.config/fish/functions/update.fish index c62b2c36..f8c23f10 100644 --- a/.config/fish/functions/update.fish +++ b/.config/fish/functions/update.fish @@ -5,9 +5,8 @@ function update --description "Update everything" set -l lines 'cargo install-update -a gup update uv tool upgrade --all -fisher update flatpak update -y -paru -Syu' +yes | paru -Syu' set -l cmds (string split \n -- $lines | string trim) echo Commands to be run: for i in $cmds @@ -22,7 +21,7 @@ paru -Syu' while test (count (jobs -p)) -ge 2 sleep 0.5 end - if string match -q "paru*" -- "$cmd" + if string match -q "*paru *" -- "$cmd" eval $cmd else $termcmd $cmd &>/dev/null &