Added eza completion download in .chezmoiexternal

This commit is contained in:
Lockszmith (VAST@MacBook) 2025-05-01 09:19:39 -04:00
parent 20c365d7f4
commit c92c86c8c4
1 changed files with 19 additions and 3 deletions

View File

@ -238,7 +238,7 @@
"refreshPeriod" $defaultRefresh "refreshPeriod" $defaultRefresh
) -}}{{- end -}}{{- end -}}{{- end -}} ) -}}{{- end -}}{{- end -}}{{- end -}}
{{- if (not (eq .chezmoi.os "darwin")) -}} {{- if (or true (not (eq .chezmoi.os "darwin"))) -}}
{{- with $app_name := "moar" -}} {{- with $app_name := "moar" -}}
{{- with $repo := (printf "%s/%s" "walles" $app_name) -}} {{- with $repo := (printf "%s/%s" "walles" $app_name) -}}
{{- with $version := (gitHubLatestRelease $repo).GetTagName -}} {{- with $version := (gitHubLatestRelease $repo).GetTagName -}}
@ -349,6 +349,8 @@
{{- if and (lookPath "jq") (lookPath "cargo-binstall") -}} {{- if and (lookPath "jq") (lookPath "cargo-binstall") -}}
{{- $path_prefix = or (get (dict "linux" "./") .chezmoi.os) "" -}} {{- $path_prefix = or (get (dict "linux" "./") .chezmoi.os) "" -}}
{{- with $app_name := "eza" -}} {{- with $app_name := "eza" -}}
{{- with $repo := (printf "%s/%s" "eza-community" $app_name) -}}
{{- with $version := trimPrefix "v" (gitHubLatestRelease $repo).GetTagName -}}
{{- with $bin_url := (output "sh" "-c" ( {{- with $bin_url := (output "sh" "-c" (
list list
"cargo-binstall --log-level debug --dry-run --no-track --no-confirm --json-output" "cargo-binstall --log-level debug --dry-run --no-track --no-confirm --json-output"
@ -357,14 +359,21 @@
| join " ") | fromJson | join " ") | fromJson
).url ).url
-}} -}}
{{- with $repo := (printf "%s/%s" "eza-community" $app_name) -}}
{{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict {{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict
"type" "archive-file" "type" "archive-file"
"url" $bin_url "url" $bin_url
"path" (printf "%s%s" $path_prefix $app_name) "path" (printf "%s%s" $path_prefix $app_name)
"executable" true "executable" true
"refreshPeriod" $defaultRefresh "refreshPeriod" $defaultRefresh
) -}}{{- end -}}{{- end -}}{{- end -}} ) -}}
{{- $_ := set $externals (printf ".cache/zsh/completions/_%s" $app_name) (dict
"type" "archive-file"
"url" (printf "https://github.com/%s/releases/download/v%s/completions-%s.tar.gz" $repo $version $version)
"path" (printf "./target/completions-%s/_%s" $version $app_name)
"executable" true
"refreshPeriod" $defaultRefresh
) -}}{{- end -}}{{- end -}}{{- end -}}{{- end -}}
{{- with $app_name := "vivid" -}} {{- with $app_name := "vivid" -}}
{{- with $bin_url := (output "sh" "-c" ( {{- with $bin_url := (output "sh" "-c" (
@ -409,6 +418,13 @@
{{- end }} {{- end }}
".config/nvim":
type: "git-repo"
url: "https://code.lksz.me/szmedia/kickstart-modular.nvim.sz.git"
clone.args: --branch sz
pullr.args: --autostash --rebase
refreshPeriod: "{{ $defaultRefresh }}"
".config/sz.env/lib/ble.sh.curl": ".config/sz.env/lib/ble.sh.curl":
type: "archive" type: "archive"
url: "https://github.com/akinomyoga/ble.sh/releases/download/nightly/ble-nightly.tar.xz" url: "https://github.com/akinomyoga/ble.sh/releases/download/nightly/ble-nightly.tar.xz"