From 2dddd4094c761427fb6a503da4ff222790033456 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sat, 20 Apr 2024 10:27:48 -0700 Subject: [PATCH] Update .config/packages/arch-packages.fish --- .../packages/run_onchange_after_arch-packages.fish.tmpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dot_config/packages/run_onchange_after_arch-packages.fish.tmpl b/dot_config/packages/run_onchange_after_arch-packages.fish.tmpl index c9545de..835617c 100644 --- a/dot_config/packages/run_onchange_after_arch-packages.fish.tmpl +++ b/dot_config/packages/run_onchange_after_arch-packages.fish.tmpl @@ -5,8 +5,10 @@ # {{ include (joinPath "dot_config/packages/" (base .)) | sha256sum }} {{ end -}} +cd "$HOME/.config/packages/" + set file (\ - find . -type f -iname "arch*" -print0\ + find . -type f -iname "arch?*" -print0\ | xargs -0 ls -tr\ | tail -n 1\ | string sub -s 3\ @@ -25,4 +27,6 @@ if ! test "{{ .chezmoi.hostname }}" = "$file" end yay -Qeq >{{ joinPath .chezmoi.sourceDir "dot_config/packages" .chezmoi.hostname }} + +cd "$HOME" {{ end -}}