2024-09-21 16:42:19 +00:00
|
|
|
# https://www.chezmoi.io/reference/special-files-and-directories/chezmoiexternal-format/
|
|
|
|
#
|
2024-11-25 22:43:38 +00:00
|
|
|
# The externals are checked based on the refreshPeriod whenever an `apply` (or `update`) operations run
|
|
|
|
#
|
|
|
|
# The simplest form to update all externals:
|
|
|
|
# ```sh
|
|
|
|
# chezmoi apply --include externals
|
|
|
|
# ```
|
|
|
|
#
|
|
|
|
# Variable Type Default Description
|
2024-09-21 16:42:19 +00:00
|
|
|
# type string none External type (file, archive, archive-file, or git-repo)
|
2024-11-25 22:43:38 +00:00
|
|
|
# url string none URL
|
|
|
|
# refreshPeriod duration 0 Refresh period (Examples: one day (24h), one week (168h), or four weeks (672h))
|
|
|
|
# executable bool false Add executable_ attribute to file
|
|
|
|
# path string none Path to file in archive
|
|
|
|
|
|
|
|
{{ $defaultRefresh := "168h" -}}
|
|
|
|
{{- $externals := dict -}}
|
2024-09-21 16:42:19 +00:00
|
|
|
|
2024-11-25 22:47:26 +00:00
|
|
|
{{- 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 }}
|
2024-11-25 02:40:28 +00:00
|
|
|
|
|
|
|
{{- 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)
|
2024-11-25 22:43:38 +00:00
|
|
|
"refreshPeriod" $defaultRefresh
|
|
|
|
) -}}
|
2024-11-25 02:40:28 +00:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2024-11-25 05:12:17 +00:00
|
|
|
{{- with $repo := "hickford/git-credential-oauth" -}}
|
|
|
|
{{- with $version := trimPrefix "v" (gitHubLatestRelease $repo).GetTagName -}}
|
|
|
|
{{- $_ := set $externals ".local/bin/git-credential-oauth" (dict
|
|
|
|
"type" "archive-file"
|
|
|
|
"url" (printf "https://github.com/%s/releases/download/v%s/git-credential-oauth_%s_linux_amd64.tar.gz" $repo $version $version)
|
|
|
|
"path" "git-credential-oauth"
|
2024-11-25 22:44:57 +00:00
|
|
|
"executable" true
|
2024-11-25 22:43:38 +00:00
|
|
|
"refreshPeriod" $defaultRefresh
|
|
|
|
) -}}
|
2024-11-25 05:12:17 +00:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2024-11-25 22:47:26 +00:00
|
|
|
{{- with $repo := "extrawurst/gitui" -}}
|
2024-11-25 02:40:28 +00:00
|
|
|
{{- with $version := (gitHubLatestRelease $repo).GetTagName -}}
|
2024-11-25 22:47:26 +00:00
|
|
|
{{- $_ := 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"
|
2024-11-25 22:44:57 +00:00
|
|
|
"executable" true
|
2024-11-25 22:43:38 +00:00
|
|
|
"refreshPeriod" $defaultRefresh
|
|
|
|
) -}}
|
2024-11-25 02:40:28 +00:00
|
|
|
{{- end -}}
|
2024-11-25 22:47:26 +00:00
|
|
|
{{- end }}
|
2024-11-25 02:40:28 +00:00
|
|
|
|
|
|
|
{{- $externals | toYaml }}
|
2024-09-19 04:31:48 +00:00
|
|
|
".config/sz.env/lib/ble.sh.curl":
|
|
|
|
type: "archive"
|
|
|
|
url: "https://github.com/akinomyoga/ble.sh/releases/download/nightly/ble-nightly.tar.xz"
|
2024-11-25 22:43:38 +00:00
|
|
|
refreshPeriod: "{{ $defaultRefresh }}"
|
2024-09-19 04:31:48 +00:00
|
|
|
|
2024-11-25 02:40:28 +00:00
|
|
|
".config/sz.env/lib/delta.themes.gitconfig":
|
2024-09-21 16:42:19 +00:00
|
|
|
type: "file"
|
2024-11-25 02:40:28 +00:00
|
|
|
url: "https://raw.githubusercontent.com/dandavison/delta/refs/heads/main/themes.gitconfig"
|
2024-11-25 22:43:38 +00:00
|
|
|
refreshPeriod: "{{ $defaultRefresh }}"
|
2024-09-21 16:42:19 +00:00
|
|
|
|
2024-11-25 02:40:28 +00:00
|
|
|
".config/sz.env/lib/bash-preexec/bash-preexec.sh":
|
|
|
|
type: "file"
|
|
|
|
url: "https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh"
|
2024-11-25 22:43:38 +00:00
|
|
|
refreshPeriod: "{{ $defaultRefresh }}"
|
2024-11-25 22:47:51 +00:00
|
|
|
|
|
|
|
".local/bin/nvim.AppImage":
|
|
|
|
type: "file"
|
|
|
|
url: "https://github.com/neovim/neovim/releases/download/stable/nvim.appimage"
|
|
|
|
executable: true
|
|
|
|
refreshPeriod: "{{ $defaultRefresh }}"
|