chezmoiexternals improvements

- Zellij version is dynamically tracked
- Added delta git/diff viewer and pager
This commit is contained in:
{{ .data.gitname }} 2024-11-24 21:40:28 -05:00
parent 68eb71e507
commit 3e3c82134b
1 changed files with 29 additions and 5 deletions

View File

@ -3,18 +3,42 @@
# type string none External type (file, archive, archive-file, or git-repo) # 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)) # 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": ".config/sz.env/lib/ble.sh.curl":
type: "archive" type: "archive"
url: "https://github.com/akinomyoga/ble.sh/releases/download/nightly/ble-nightly.tar.xz" url: "https://github.com/akinomyoga/ble.sh/releases/download/nightly/ble-nightly.tar.xz"
refreshPeriod: "168h" 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": ".config/sz.env/lib/bash-preexec/bash-preexec.sh":
type: "file" type: "file"
url: "https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh" url: "https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh"
refreshPeriod: "168h" 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"