Fix eza in different platforms

This commit is contained in:
Lockszmith (wsl@Sygin) 2025-04-12 09:38:36 -04:00
parent efc7e2c29c
commit 5629133ec3
1 changed files with 2 additions and 1 deletions

View File

@ -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 -}}