From c89d132d8546355de88b67e46f2ecca76daec3bf Mon Sep 17 00:00:00 2001 From: "Lockszmith (@crater)" Date: Mon, 7 Apr 2025 22:08:21 +0000 Subject: [PATCH] Add external: atuin.sh --- _src.posix/.chezmoiexternal.yaml.tmpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/_src.posix/.chezmoiexternal.yaml.tmpl b/_src.posix/.chezmoiexternal.yaml.tmpl index 9861e9c..fb4594d 100644 --- a/_src.posix/.chezmoiexternal.yaml.tmpl +++ b/_src.posix/.chezmoiexternal.yaml.tmpl @@ -56,6 +56,18 @@ {{- end -}} {{- end -}} +{{- with $repo := "atuinsh/atuin" -}} +{{- with $version := (gitHubLatestRelease $repo).GetTagName -}} +{{- $_ := set $externals ".local/bin/atuin" (dict + "type" "archive-file" + "url" (printf "https://github.com/%s/releases/download/%s/atuin-%s.tar.gz" $repo $version $myArch) + "path" (printf "atuin-%s/atuin" $myArch) + "executable" true + "refreshPeriod" $defaultRefresh +) -}} +{{- end -}} +{{- end -}} + {{/* # valid arch strings: # darwin_amd64