diff --git a/_src.posix/.chezmoiexternal.yaml.tmpl b/_src.posix/.chezmoiexternal.yaml.tmpl index dc65674..d691519 100644 --- a/_src.posix/.chezmoiexternal.yaml.tmpl +++ b/_src.posix/.chezmoiexternal.yaml.tmpl @@ -100,6 +100,7 @@ ) -}}{{- end -}}{{- end -}}{{- end -}} {{- if lookPath "jq" -}} +{{- $path_prefix := or (get (dict "linux" "./") .chezmoi.os) "" -}} {{- with $app_name := "eza" -}} {{- with $bin_url := (output "sh" "-c" ( list @@ -113,7 +114,7 @@ {{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict "type" "archive-file" "url" $bin_url - "path" $app_name + "path" (printf "%s%s" $path_prefix $app_name) "executable" true "refreshPeriod" $defaultRefresh ) -}}{{- end -}}{{- end -}}{{- end -}}