From 89087c9239d03cd4c9c4420e77f296f32a1214c4 Mon Sep 17 00:00:00 2001 From: Alen Date: Sun, 24 Sep 2023 20:24:09 +0400 Subject: Fix nanorc template not working outside of chezmoi dir --- dot_config/nano/nanorc.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dot_config') 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 -- cgit 1.4.1-2-gfad0