Update .config/packages/arch-packages.fish

This commit is contained in:
punkfairie 2024-06-20 17:51:22 -07:00
parent a0155ea938
commit 17fff51c84
Signed by: punkfairie
GPG key ID: A86AF57F837E320F

View file

@ -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