From 3e3c82134be0e2771934b6f6f16d14d812cafd92 Mon Sep 17 00:00:00 2001 From: "{{ .data.gitname }}" <{{ .data.gitemail }}> Date: Sun, 24 Nov 2024 21:40:28 -0500 Subject: [PATCH] chezmoiexternals improvements - Zellij version is dynamically tracked - Added delta git/diff viewer and pager --- _home/.chezmoiexternal.yaml | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/_home/.chezmoiexternal.yaml b/_home/.chezmoiexternal.yaml index ccfb642..170e3fe 100644 --- a/_home/.chezmoiexternal.yaml +++ b/_home/.chezmoiexternal.yaml @@ -3,18 +3,42 @@ # type string none External type (file, archive, archive-file, or git-repo) # refreshPeriod duration 0 Refresh period (Examples: one day (24h), one week (168h), or four weeks (672h)) +{{ $externals := dict -}} + +{{- with $repo := "dandavison/delta" -}} +{{- with $version := (gitHubLatestRelease $repo).GetTagName -}} +{{- $_ := set $externals ".local/bin/delta" (dict + "type" "archive-file" + "url" (printf "https://github.com/%s/releases/download/%s/delta-%s-x86_64-unknown-linux-musl.tar.gz" $repo $version $version) + "path" (printf "delta-%s-x86_64-unknown-linux-musl/delta" $version) + "refreshPeriod" "168h") +-}} +{{- end -}} +{{- end -}} + +{{- with $repo := "zellij-org/zellij" -}} +{{- 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) + "refreshPeriod" "168h") +-}} +{{- end -}} +{{- end -}} + +{{- $externals | toYaml }} ".config/sz.env/lib/ble.sh.curl": type: "archive" url: "https://github.com/akinomyoga/ble.sh/releases/download/nightly/ble-nightly.tar.xz" refreshPeriod: "168h" +".config/sz.env/lib/delta.themes.gitconfig": + type: "file" + url: "https://raw.githubusercontent.com/dandavison/delta/refs/heads/main/themes.gitconfig" + refreshPeriod: "168h" + ".config/sz.env/lib/bash-preexec/bash-preexec.sh": type: "file" url: "https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh" refreshPeriod: "168h" -".cache/chezmoi/tmp/zellij": - type: "archive" - url: "https://github.com/zellij-org/zellij/releases/download/v0.40.1/zellij-x86_64-unknown-linux-musl.tar.gz" - refreshPeriod: "168h" -