blob: a653842bffd4236464001981403e1197d618cfc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{{- $nanoVersion := .nano.default_version -}}
{{- if lookPath "nano" -}}
{{- $nanoVersion = index (output "nano" "--version" | split " ") "_4" -}}
{{- end -}}
{{- output (joinPath .chezmoi.sourceDir "dot_local/bin/nano_config.py") "generate"
"--config" .nano.config
"--version" $nanoVersion -}}
# Extra syntax includes
{{ range .nano.include_paths -}}
{{ if (. | lstat) -}}
include "{{ . }}/*.nanorc"
{{ end -}}
{{- end -}}
|