1
0
Fork 0

chezmoi, ghostty: simplify conditionals in templates

This commit is contained in:
Von Random 2026-03-03 14:36:02 +02:00
parent 5a8485f486
commit d7f430531f
2 changed files with 5 additions and 16 deletions

View file

@ -1,11 +1 @@
sourceDir = "~/.vdotfiles" sourceDir = "~/.vdotfiles"
[data.ghostty_font.darwin]
face = "Maple Mono NL NF"
size = "14"
feats = []
[data.ghostty_font.linux]
face = "Maple Mono NL NF"
size = "11"
feats = []

View file

@ -1,15 +1,14 @@
{{- $font := index .ghostty_font .chezmoi.os -}} font-family = Maple Mono NL NF
font-family = {{ $font.face }} {{- if eq .chezmoi.os "darwin" }}
{{- range $font.feats }} font-size = 14
font-feature = {{ . }} {{- else }}
font-size = 11
{{- end }} {{- end }}
font-size = {{ $font.size }}
cursor-style = block cursor-style = block
cursor-style-blink = false cursor-style-blink = false
shell-integration-features = no-cursor shell-integration-features = no-cursor
window-padding-color = extend window-padding-color = extend
macos-titlebar-style = tabs
theme = Gruvbox Dark theme = Gruvbox Dark