From 17fff51c84652ac2d49b144a6eb0d02437f1a401 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Thu, 20 Jun 2024 17:51:22 -0700 Subject: [PATCH] Update .config/packages/arch-packages.fish --- .../run_onchange_after_arch-packages.fish.tmpl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 e679017..fc659b1 100644 --- a/dot_config/packages/run_onchange_after_arch-packages.fish.tmpl +++ b/dot_config/packages/run_onchange_after_arch-packages.fish.tmpl @@ -26,12 +26,13 @@ if ! test "{{ .chezmoi.hostname }}" = "$file" set_color yellow && echo "Package list has changed, reinstalling..." yay -S --needed - <~/.config/packages/arch - {{ $host := .chezmoi.hostname }} - {{ range .packages.arch -}} - {{ if eq $host . -}} - {{ range . -}} + {{ if eq .chezmoi.hostname "archgirlie" -}} + {{ range .packages.arch.archgirlie -}} + yay -S --needed - <{{ . }} + {{ end -}} + {{ else if eq .chezmoi.hostname "archbaby" -}} + {{ range .packages.arch.archbaby -}} yay -S --needed - <{{ . }} - {{ end -}} {{ end -}} {{ end -}} end