chezmoi, ghostty: simplify conditionals in templates
This commit is contained in:
parent
5a8485f486
commit
d7f430531f
2 changed files with 5 additions and 16 deletions
|
|
@ -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 = []
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue