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 f3693c5..e679017 100644 --- a/dot_config/packages/run_onchange_after_arch-packages.fish.tmpl +++ b/dot_config/packages/run_onchange_after_arch-packages.fish.tmpl @@ -26,8 +26,9 @@ 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 .chezmoi.hostname (. | quote ) -}} + {{ if eq $host . -}} {{ range . -}} yay -S --needed - <{{ . }} {{ end -}}