From 8f62728638a8871d5470d88e2697df72993e4450 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Thu, 24 Apr 2025 15:45:05 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-24 15:45:05 --- .config/fish/functions/update.fish | 6 +++--- .config/helix/languages.toml | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) 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