From 3b01da4041dc3733447a903856aff13851e5cdd7 Mon Sep 17 00:00:00 2001 From: "Lockszmith (@kateryna)" Date: Mon, 25 Nov 2024 17:47:26 -0500 Subject: [PATCH] Add gitui external (and reorder a bit) --- _home/.chezmoiexternal.yaml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/_home/.chezmoiexternal.yaml b/_home/.chezmoiexternal.yaml index 579bb4a..b01856f 100644 --- a/_home/.chezmoiexternal.yaml +++ b/_home/.chezmoiexternal.yaml @@ -17,6 +17,17 @@ {{ $defaultRefresh := "168h" -}} {{- $externals := dict -}} +{{- with $repo := "zellij-org/zellij" -}} +{{- with $version := (gitHubLatestRelease $repo).GetTagName -}} +{{- $_ := set $externals ".cache/chezmoi/tmp/zellij" (dict + "type" "archive-file" + "url" (printf "https://github.com/%s/releases/download/%s/zellij-x86_64-unknown-linux-musl.tar.gz" $repo $version) + "path" "zellij" + "executable" true + "refreshPeriod" $defaultRefresh +) -}} +{{- end -}} +{{- end }} {{- with $repo := "dandavison/delta" -}} {{- with $version := (gitHubLatestRelease $repo).GetTagName -}} @@ -41,16 +52,17 @@ {{- end -}} {{- end -}} -{{- with $repo := "zellij-org/zellij" -}} +{{- with $repo := "extrawurst/gitui" -}} {{- with $version := (gitHubLatestRelease $repo).GetTagName -}} -{{- $_ := set $externals ".cache/chezmoi/tmp/zellij" (dict - "type" "archive" - "url" (printf "https://github.com/%s/releases/download/%s/zellij-x86_64-unknown-linux-musl.tar.gz" $repo $version) +{{- $_ := set $externals ".local/bin/gitui" (dict + "type" "archive-file" + "url" (printf "https://github.com/%s/releases/download/%s/gitui-linux-x86_64.tar.gz" $repo $version) + "path" "./gitui" "executable" true "refreshPeriod" $defaultRefresh ) -}} {{- end -}} -{{- end -}} +{{- end }} {{- $externals | toYaml }} ".config/sz.env/lib/ble.sh.curl":