From 3779143bb6514835d43c72410cfd3f04fc21e0bd Mon Sep 17 00:00:00 2001 From: "Lockszmith (VAST@MacBook)" Date: Tue, 6 May 2025 12:11:55 -0400 Subject: [PATCH] add `stu` to .chezmoiexternal --- chezmoi.roots/_home/.chezmoiexternal.yaml.tmpl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chezmoi.roots/_home/.chezmoiexternal.yaml.tmpl b/chezmoi.roots/_home/.chezmoiexternal.yaml.tmpl index 5cb9d1b..b7ca919 100644 --- a/chezmoi.roots/_home/.chezmoiexternal.yaml.tmpl +++ b/chezmoi.roots/_home/.chezmoiexternal.yaml.tmpl @@ -123,6 +123,17 @@ "refreshPeriod" $defaultRefresh ) -}}{{- end -}}{{- end -}}{{- end -}} +{{- with $app_name := "stu" -}} +{{- with $repo := (printf "%s/%s" "lusingander" $app_name) -}} +{{- with $version := trimPrefix "v" (gitHubLatestRelease $repo).GetTagName -}} +{{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict + "type" "archive-file" + "url" (printf "https://github.com/%s/releases/download/v%s/%s-%s-%s.tar.gz" $repo $version $app_name $version $myArch) + "path" (printf "%s" $app_name) + "executable" true + "refreshPeriod" $defaultRefresh +) -}}{{- end -}}{{- end -}}{{- end -}} + {{- if (eq .chezmoi.os "linux") -}} {{- $_ := set $externals ".local/bin/broot" (dict "type" "file"