diff --git a/root/.chezmoidata.yaml b/root/.chezmoidata.yaml index 60e8d2f729..6dc51be092 100644 --- a/root/.chezmoidata.yaml +++ b/root/.chezmoidata.yaml @@ -20,7 +20,7 @@ color: external: fonts: url: "https://github.com/ryanoasis/nerd-fonts/releases/latest/download" - version: "v3.0.0" + version: "v3.0.1" sayings: diff --git a/root/.chezmoiexternal.yaml b/root/.chezmoiexternal.yaml index 9d18acbce5..48733780b0 100644 --- a/root/.chezmoiexternal.yaml +++ b/root/.chezmoiexternal.yaml @@ -2,38 +2,11 @@ vim:ft=yaml.gotmpl: */ -}} -{{- $releaseURLS := joinPath .chezmoi.homeDir ".backup/chezmoi" "gitHubLatestRelease.yaml" -}} -{{- if stat $releaseURLS -}} -{{- $releaseURLS = include $releaseURLS | fromYaml -}} -{{- else -}} -{{- $releaseURLS = .external -}} -{{- end -}} --- -# Nerd Fonts -{{- $url_download := $releaseURLS.fonts.url }} -{{- $fontPath := "" }} -{{- if eq .chezmoi.os "linux" }} -{{- $fontPath = ".local/share/fonts" }} -{{- else if eq .chezmoi.os "darwin" }} -{{- $fontPath = "Library/Fonts" }} -{{- end }} -{{- range (list "InconsolataLGC" "Meslo") }} -'{{- joinPath $fontPath (substr 0 1 . | lower) . -}}': - url: '{{- $url_download -}} / {{- . -}} .zip' - type: 'archive' - executable: true - refreshPeriod: '720h' # 30 days - exclude: - - '*NerdFontMono*' - - '*NFM*' - - '*NerdFontPropo*' - - '*NFP*' -{{- end }} - - '*DZ*' - - '*LGM*' - - '*LGL*' - +# +# ZSH shell +# # Prezto '.zprezto': diff --git a/root/Library/Fonts/.chezmoiexternal.yaml b/root/Library/Fonts/.chezmoiexternal.yaml new file mode 100644 index 0000000000..b52a27f391 --- /dev/null +++ b/root/Library/Fonts/.chezmoiexternal.yaml @@ -0,0 +1 @@ +{{- includeTemplate "dot_local/share/fonts/.chezmoiexternal.yaml" . -}} diff --git a/root/dot_local/share/fonts/.chezmoiexternal.yaml b/root/dot_local/share/fonts/.chezmoiexternal.yaml new file mode 100644 index 0000000000..68dd1dfe66 --- /dev/null +++ b/root/dot_local/share/fonts/.chezmoiexternal.yaml @@ -0,0 +1,28 @@ +{{- /* + vim:ft=yaml.gotmpl: + */ -}} + +{{- $releaseURLS := joinPath .chezmoi.homeDir ".backup/chezmoi" "gitHubLatestRelease.yaml" -}} +{{- if stat $releaseURLS -}} +{{- $releaseURLS = include $releaseURLS | fromYaml -}} +{{- else -}} +{{- $releaseURLS = .external -}} +{{- end -}} +--- + +{{- $url_download := $releaseURLS.fonts.url }} +{{- range (list "InconsolataLGC" "Meslo") }} +'{{- joinPath (substr 0 1 . | lower) . -}}': + url: '{{- $url_download -}} / {{- . -}} .tar.xz' + type: 'archive' + executable: true + refreshPeriod: '720h' # 30 days + exclude: + - '*NerdFontMono*' + - '*NFM*' + - '*NerdFontPropo*' + - '*NFP*' +{{- end }} + - '*DZ*' + - '*LGM*' + - '*LGL*'