Fix eza in different platforms
This commit is contained in:
parent
efc7e2c29c
commit
5629133ec3
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in New Issue