{{- $nanoVersion := .nano.default_version -}} {{- if lookPath "nano" -}} {{- $nanoVersion = index (output "nano" "--version" | split " ") "_4" -}} {{- end -}} {{- output "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 -}}