summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlen <alen@dotfiles.xyz>2023-09-24 20:24:09 +0400
committerAlen <alen@dotfiles.xyz>2023-09-24 20:24:09 +0400
commit89087c9239d03cd4c9c4420e77f296f32a1214c4 (patch)
tree0478e8a4e884e9d4852e3eb1b3ca6d0789172123
parent18b9327c9d3b3c9478e27e7dac98a7f88f421688 (diff)
Fix nanorc template not working outside of chezmoi dir
-rw-r--r--dot_config/nano/nanorc.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/dot_config/nano/nanorc.tmpl b/dot_config/nano/nanorc.tmpl
index a0de6af..a653842 100644
--- a/dot_config/nano/nanorc.tmpl
+++ b/dot_config/nano/nanorc.tmpl
@@ -2,7 +2,7 @@
 {{- if lookPath "nano" -}}
     {{- $nanoVersion = index (output "nano" "--version" | split " ") "_4" -}}
 {{- end -}}
-{{- output "dot_local/bin/nano_config.py" "generate"
+{{- output (joinPath .chezmoi.sourceDir "dot_local/bin/nano_config.py") "generate"
     "--config" .nano.config
     "--version" $nanoVersion -}}
 # Extra syntax includes