Add ability to bypass externals with OFFLINE=1

This commit is contained in:
Lockszmith (@VAST) 2025-03-11 15:45:52 -04:00
parent 09f92289cf
commit ae2ec14d46
2 changed files with 12 additions and 0 deletions

View File

@ -14,6 +14,8 @@
# executable bool false Add executable_ attribute to file
# path string none Path to file in archive
{{- if not (env "OFFLINE") -}}
{{ $defaultRefresh := "168h" -}}
{{- $externals := dict -}}
@ -115,3 +117,7 @@
type: "file"
url: "https://raw.githubusercontent.com/dandavison/delta/refs/heads/main/themes.gitconfig"
refreshPeriod: "{{ $defaultRefresh }}"
{{- else -}}
# .chezmoiexternal is disabled because OFFLINE env is defined
{{- end -}}

View File

@ -14,6 +14,8 @@
# executable bool false Add executable_ attribute to file
# path string none Path to file in archive
{{- if not (env "OFFLINE") -}}
{{ $defaultRefresh := "168h" -}}
{{- $externals := dict -}}
@ -118,3 +120,7 @@
url: "https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.appimage"
executable: true
refreshPeriod: "{{ $defaultRefresh }}"
{{- else -}}
# .chezmoiexternal is disabled because OFFLINE env is defined
{{- end -}}