-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.chezmoi.toml.tmpl
45 lines (38 loc) · 1.07 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
42
43
44
45
{{- $email := promptStringOnce . "email" "Email address" -}}
{{- $choices := list "home" "work" "other" -}}
{{- $hosttype := promptChoiceOnce . "hosttype" "What type of host are you on" $choices -}}
{{- $isDarkMode := false }}
{{- if eq .chezmoi.os "darwin" }}
{{- $isDarkMode = eq "Dark" (output "sh" "-c" "defaults read -g AppleInterfaceStyle 2>/dev/null || true" | trim) }}
{{- end }}
encryption = "gpg"
[gpg]
recipient = "Misaka"
args = ["--quiet"]
[data]
email = {{- $email | quote }}
hosttype = {{- $hosttype | quote }}
isDarkMode = {{- $isDarkMode }}
[data.path]
{{- if eq .chezmoi.os "darwin" }}
# darwin
{{- if eq .chezmoi.arch "arm64" }}
brew = "/opt/homebrew"
gh = "/opt/homebrew/bin/gh"
{{- else }}
brew = "/usr/local"
gh = "/usr/local/bin/gh"
{{- end }}
{{- else if eq .chezmoi.os "linux" }}
# linux
gh = "/usr/bin/gh"
{{- else if eq .chezmoi.os "windows" }}
# windows
gh = "'C:\\\\Program Files\\\\GitHub CLI\\\\gh.exe'"
{{- else }}
# unknown
{{- end }}
[diff]
exclude = ["scripts", "externals"]
[gitHub]
refreshPeriod = "24h"