AutoYADM commit: 2025-04-24 15:45:05
This commit is contained in:
parent
bba4ee64b8
commit
8f62728638
2 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
function update --description "Update everything"
|
||||
# TODO: add configuration options and publish?
|
||||
sudo -v
|
||||
set -l termcmd foot fish -c
|
||||
set -l lines 'cargo install-update -a
|
||||
|
@ -21,8 +22,8 @@ paru -Syu'
|
|||
while test (count (jobs -p)) -ge 2
|
||||
sleep 0.5
|
||||
end
|
||||
if string match -q paru -- "$cmd"
|
||||
$cmd
|
||||
if string match -q "paru*" -- "$cmd"
|
||||
eval $cmd
|
||||
else
|
||||
$termcmd $cmd &>/dev/null &
|
||||
end
|
||||
|
@ -44,5 +45,4 @@ paru -Syu'
|
|||
eval $cmd
|
||||
end
|
||||
end
|
||||
# paru -Syu
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue