From 0cb7475cf23b8d0d01ed850b418d43a42be70d33 Mon Sep 17 00:00:00 2001 From: "Lockszmith (@kateryna)" Date: Thu, 3 Apr 2025 21:58:24 -0400 Subject: [PATCH] Add moar to .chezmoiexternal --- _src.posix/.chezmoiexternal.yaml.tmpl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/_src.posix/.chezmoiexternal.yaml.tmpl b/_src.posix/.chezmoiexternal.yaml.tmpl index e59546d..0ddfdef 100644 --- a/_src.posix/.chezmoiexternal.yaml.tmpl +++ b/_src.posix/.chezmoiexternal.yaml.tmpl @@ -148,6 +148,17 @@ {{- end -}} {{- end -}} +{{- with $repo := "walles/moar" -}} +{{- with $version := (gitHubLatestRelease $repo).GetTagName -}} +{{- $_ := set $externals ".local/bin/moar" (dict + "type" "file" + "url" (printf "https://github.com/%s/releases/download/%s/moar-%s-%s" $repo $version $version $myArch) + "executable" true + "refreshPeriod" $defaultRefresh +) -}} +{{- end -}} +{{- end -}} + {{/* # valid arch strings: # Darwin_arm64