Add ability to bypass externals with OFFLINE=1
This commit is contained in:
parent
09f92289cf
commit
ae2ec14d46
|
@ -14,6 +14,8 @@
|
||||||
# executable bool false Add executable_ attribute to file
|
# executable bool false Add executable_ attribute to file
|
||||||
# path string none Path to file in archive
|
# path string none Path to file in archive
|
||||||
|
|
||||||
|
{{- if not (env "OFFLINE") -}}
|
||||||
|
|
||||||
{{ $defaultRefresh := "168h" -}}
|
{{ $defaultRefresh := "168h" -}}
|
||||||
{{- $externals := dict -}}
|
{{- $externals := dict -}}
|
||||||
|
|
||||||
|
@ -115,3 +117,7 @@
|
||||||
type: "file"
|
type: "file"
|
||||||
url: "https://raw.githubusercontent.com/dandavison/delta/refs/heads/main/themes.gitconfig"
|
url: "https://raw.githubusercontent.com/dandavison/delta/refs/heads/main/themes.gitconfig"
|
||||||
refreshPeriod: "{{ $defaultRefresh }}"
|
refreshPeriod: "{{ $defaultRefresh }}"
|
||||||
|
|
||||||
|
{{- else -}}
|
||||||
|
# .chezmoiexternal is disabled because OFFLINE env is defined
|
||||||
|
{{- end -}}
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
# executable bool false Add executable_ attribute to file
|
# executable bool false Add executable_ attribute to file
|
||||||
# path string none Path to file in archive
|
# path string none Path to file in archive
|
||||||
|
|
||||||
|
{{- if not (env "OFFLINE") -}}
|
||||||
|
|
||||||
{{ $defaultRefresh := "168h" -}}
|
{{ $defaultRefresh := "168h" -}}
|
||||||
{{- $externals := dict -}}
|
{{- $externals := dict -}}
|
||||||
|
|
||||||
|
@ -118,3 +120,7 @@
|
||||||
url: "https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.appimage"
|
url: "https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.appimage"
|
||||||
executable: true
|
executable: true
|
||||||
refreshPeriod: "{{ $defaultRefresh }}"
|
refreshPeriod: "{{ $defaultRefresh }}"
|
||||||
|
|
||||||
|
{{- else -}}
|
||||||
|
# .chezmoiexternal is disabled because OFFLINE env is defined
|
||||||
|
{{- end -}}
|
Loading…
Reference in New Issue