AutoYADM commit: 2025-04-24 15:15:06

This commit is contained in:
Daniel Fichtinger 2025-04-24 15:15:06 -04:00
parent 453cfaf91e
commit f0e1240b14

View file

@ -1,10 +1,12 @@
function update --description "Update everything" function update --description "Update everything"
sudo -v
set -l termcmd foot fish -c set -l termcmd foot fish -c
set -l lines 'cargo install-update -a set -l lines 'cargo install-update -a
gup update gup update
uv tool upgrade --all uv tool upgrade --all
paru -Syu fisher update
flatpak update' flatpak update -y
paru -Syu'
set -l cmds (string split \n -- $lines | string trim) set -l cmds (string split \n -- $lines | string trim)
echo Commands to be run: echo Commands to be run:
for i in $cmds for i in $cmds
@ -15,6 +17,9 @@ flatpak update'
switch $response switch $response
case y Y case y Y
for cmd in $cmds for cmd in $cmds
if string match -q paru $cmd
continue
end
# max 2 jobs at a time # max 2 jobs at a time
while test (count (jobs -p)) -ge 2 while test (count (jobs -p)) -ge 2
sleep 0.5 sleep 0.5
@ -38,4 +43,5 @@ flatpak update'
eval $cmd eval $cmd
end end
end end
# paru -Syu
end end