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