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"
|
||||
|
||||
[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 = {{ $font.face }}
|
||||
{{- range $font.feats }}
|
||||
font-feature = {{ . }}
|
||||
font-family = Maple Mono NL NF
|
||||
{{- if eq .chezmoi.os "darwin" }}
|
||||
font-size = 14
|
||||
{{- else }}
|
||||
font-size = 11
|
||||
{{- end }}
|
||||
font-size = {{ $font.size }}
|
||||
|
||||
cursor-style = block
|
||||
cursor-style-blink = false
|
||||
shell-integration-features = no-cursor
|
||||
window-padding-color = extend
|
||||
macos-titlebar-style = tabs
|
||||
|
||||
theme = Gruvbox Dark
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue