AutoYADM commit: 2025-04-24 15:45:05

This commit is contained in:
Daniel Fichtinger 2025-04-24 15:45:05 -04:00
parent bba4ee64b8
commit 8f62728638
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,5 @@
function update --description "Update everything" function update --description "Update everything"
# TODO: add configuration options and publish?
sudo -v 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
@ -21,8 +22,8 @@ paru -Syu'
while test (count (jobs -p)) -ge 2 while test (count (jobs -p)) -ge 2
sleep 0.5 sleep 0.5
end end
if string match -q paru -- "$cmd" if string match -q "paru*" -- "$cmd"
$cmd eval $cmd
else else
$termcmd $cmd &>/dev/null & $termcmd $cmd &>/dev/null &
end end
@ -44,5 +45,4 @@ paru -Syu'
eval $cmd eval $cmd
end end
end end
# paru -Syu
end end

View file

@ -317,3 +317,7 @@ formatter = { command = "just-formatter" } # See https://github.com/eli-yip/just
name = "yaml" name = "yaml"
auto-format = true auto-format = true
formatter = { command = "yamlfmt", args = ['-'] } formatter = { command = "yamlfmt", args = ['-'] }
[[language]]
name = "fish"
auto-format = true