-
Notifications
You must be signed in to change notification settings - Fork 0
/
.chezmoi.toml.tmpl
41 lines (34 loc) · 1.83 KB
/
.chezmoi.toml.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{{- $miseLatest := (gitHubLatestRelease "jdx/mise").TagName -}}
{{- $miseOsNameDict := dict "linux" "linux" "darwin" "macos" "windows" "INVALID_OS" -}}
{{- $miseOsName := (get $miseOsNameDict .chezmoi.os) -}}
{{- $miseOsArchDict := dict "amd64" "x64" "arm64" "arm64" -}}
{{- $miseOsArch := (get $miseOsArchDict .chezmoi.arch) -}}
{{- $zoxideLatest := (gitHubLatestRelease "ajeetdsouza/zoxide").Name -}}
{{- $zoxideOsArchDict := dict "amd64" "x86_64" "arm64" "aarch64" -}}
{{- $zoxideOsArch := (get $zoxideOsArchDict .chezmoi.arch) -}}
{{- $zoxideOsNameDict := dict "linux" "unknown-linux-musl" "darwin" "apple-darwin" "windows" "pc-windows-msvc" -}}
{{- $zoxideOsName := (get $zoxideOsNameDict .chezmoi.os) -}}
{{- $nvimLatest := (gitHubLatestRelease "AstroNvim/AstroNvim").TagName -}}
{{- $nerdFontsLatest := (gitHubLatestRelease "ryanoasis/nerd-fonts").TagName -}}
{{- $fontPathDict := dict "linux" ".fonts" "darwin" "Library/Fonts" "windows" "AppData/Local/Microsoft/Windows/Fonts" -}}
{{- $fontDir := osClean (get $fontPathDict .chezmoi.os) -}}
[".local/bin/mise"]
type = "archive-file"
url = "https://github.com/jdx/mise/releases/download/{{ $miseLatest }}/mise-{{ $miseLatest }}-{{ $miseOsName }}-{{ $miseOsArch }}.tar.gz"
path = "mise/bin/mise"
executable = true
refreshPeriod = "168h"
[".local/bin/zoxide"]
type = "archive-file"
url = "https://github.com/ajeetdsouza/zoxide/releases/download/v{{ $zoxideLatest }}/zoxide-{{ $zoxideLatest }}-{{ $zoxideOsArch }}-{{ $zoxideOsName }}.tar.gz"
path = "zoxide"
executable = true
refreshPeriod = "168h"
[".config/nvim"]
type = "archive"
url = "https://github.com/AstroNvim/AstroNvim/archive/refs/tags/{{ $nvimLatest }}.tar.gz"
refreshPeriod = "168h"
["{{ $fontDir }}/FiraCode"]
type = "archive"
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/{{ $nerdFontsLatest }}/FiraCode.zip"
refreshPeriod = "168h"