diff --git a/.config/fish/functions/update.fish b/.config/fish/functions/update.fish index 07b78ff0..c62b2c36 100644 --- a/.config/fish/functions/update.fish +++ b/.config/fish/functions/update.fish @@ -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 diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index 65267614..fd42f266 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -317,3 +317,7 @@ formatter = { command = "just-formatter" } # See https://github.com/eli-yip/just name = "yaml" auto-format = true formatter = { command = "yamlfmt", args = ['-'] } + +[[language]] +name = "fish" +auto-format = true