AutoYADM commit: 2025-04-24 15:15:06
This commit is contained in:
parent
453cfaf91e
commit
f0e1240b14
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue