Compare commits
2 commits
b2009f3948
...
dc1b0b0761
Author | SHA1 | Date | |
---|---|---|---|
![]() |
dc1b0b0761 | ||
![]() |
555dc04d21 |
2 changed files with 18 additions and 6 deletions
|
@ -110,20 +110,27 @@
|
||||||
"executable" true
|
"executable" true
|
||||||
"refreshPeriod" $defaultRefresh
|
"refreshPeriod" $defaultRefresh
|
||||||
) -}}{{- end -}}{{- end -}}{{- end -}}
|
) -}}{{- end -}}{{- end -}}{{- end -}}
|
||||||
|
{{- end -}}{{/* if linux */}}
|
||||||
|
|
||||||
{{ $myArch = (printf "%s-%s" .sz.os.arch_alt "unknown-linux-gnu" )}}
|
{{ $myArch = (printf "%s-%s" .sz.os.arch_alt "unknown-linux-gnu" )}}
|
||||||
|
|
||||||
{{- with $app_name := "eza" -}}
|
{{- with $app_name := "eza" -}}
|
||||||
|
{{- with $cargo_bin_url := (output "sh" "-c" (
|
||||||
|
list
|
||||||
|
"cargo-binstall --log-level debug --dry-run --no-track --no-confirm --json-output"
|
||||||
|
$app_name
|
||||||
|
"| jq \".fields | select ( .message == \\\"Downloading package\\\" )\""
|
||||||
|
| join " ") | fromJson
|
||||||
|
).url
|
||||||
|
-}}
|
||||||
{{- with $repo := (printf "%s/%s" "eza-community" $app_name) -}}
|
{{- with $repo := (printf "%s/%s" "eza-community" $app_name) -}}
|
||||||
{{- with $version := (gitHubLatestRelease $repo).GetTagName -}}
|
|
||||||
{{- $_ := 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" (printf "https://github.com/%s/releases/download/%s/%s_%s.tar.gz" $repo $version $app_name $myArch)
|
"url" $cargo_bin_url
|
||||||
"path" (printf "./%s" $app_name)
|
"path" $app_name
|
||||||
"executable" true
|
"executable" true
|
||||||
"refreshPeriod" $defaultRefresh
|
"refreshPeriod" $defaultRefresh
|
||||||
) -}}{{- end -}}{{- end -}}{{- end -}}
|
) -}}{{- end -}}{{- end -}}{{- end -}}
|
||||||
{{- end -}}{{/* if linux */}}
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
# valid arch strings:
|
# valid arch strings:
|
||||||
|
@ -267,7 +274,12 @@
|
||||||
{{- if and (env "TELEPORT_MAJOR") (not (eq .chezmoi.os "windows")) -}}
|
{{- if and (env "TELEPORT_MAJOR") (not (eq .chezmoi.os "windows")) -}}
|
||||||
{{- with $app_name := "tsh" -}}
|
{{- with $app_name := "tsh" -}}
|
||||||
{{- with $repo := (printf "%s/%s" "gravitational" "teleport") -}}
|
{{- with $repo := (printf "%s/%s" "gravitational" "teleport") -}}
|
||||||
{{- with $version := (gitHubReleases $repo | toJson | fromJson | jq (printf "map(select(.tag_name | startswith(\"v%s\")))[0] | .tag_name" (env "TELEPORT_MAJOR")) | first ) -}}
|
{{- with $version := (gitHubReleases $repo | toJson | fromJson | jq (
|
||||||
|
printf
|
||||||
|
"map(select(.tag_name | startswith(\"v%s\")))[0] | .tag_name"
|
||||||
|
(env "TELEPORT_MAJOR"))
|
||||||
|
| first
|
||||||
|
) -}}
|
||||||
{{- $_ := 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" (printf "https://cdn.teleport.dev/teleport-%s-%s-bin.tar.gz" $version $myArch)
|
"url" (printf "https://cdn.teleport.dev/teleport-%s-%s-bin.tar.gz" $version $myArch)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
if is_cmd eza; then
|
if is_cmd eza; then
|
||||||
|
|
||||||
alias _ls="$(command -v eza) --icons "
|
alias _ls="$(command -v eza) --icons "
|
||||||
alias lg="ll --git "
|
alias lg="ll --git --git-repos-no-status"
|
||||||
|
|
||||||
[[ -n "${DBG}" ]] && echo "assigned eza as ls alias."
|
[[ -n "${DBG}" ]] && echo "assigned eza as ls alias."
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue