From 5629133ec3c55cc8ea4ca6e4386eea249895e8dd Mon Sep 17 00:00:00 2001 From: "Lockszmith (wsl@Sygin)" Date: Sat, 12 Apr 2025 09:38:36 -0400 Subject: [PATCH] Fix eza in different platforms --- _src.posix/.chezmoiexternal.yaml.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -}}