-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.chezmoi.toml.tmpl
24 lines (23 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
{{- $email := promptStringOnce . "email" "Email address" -}}
{{- $code_home_dir := promptStringOnce . "code_home_dir" "Where do you want to store git repositories (relative to $HOME. For example to store repos in /Users/user/my-repos, enter 'my-repos')" "code" -}}
[data]
email = {{ $email | quote }}
code_home = "{{ joinPath .chezmoi.homeDir $code_home_dir }}"
[git]
autoCommit = false
[edit]
command = "nvim"
[diff]
command = "code"
args = ["--wait", "--diff", "{{ "{{" }} .Target {{ "}}" }}", "{{ "{{" }} .Destination {{ "}}" }}"]
[merge]
command = "code"
args = ["--wait", "--diff", "{{ "{{" }} .Target {{ "}}" }}", "{{ "{{" }} .Destination {{ "}}" }}"]
[hooks.read-source-state.pre]
command = {{ joinPath .chezmoi.sourceDir ".pre-read-source-state.sh" | quote }}
[scriptEnv]
OP_ACCOUNT="my.1password.com"
XDG_DATA_HOME = "{{ joinPath .chezmoi.homeDir ".local/share" }}"
XDG_CACHE_HOME = "{{ joinPath .chezmoi.homeDir ".cache" }}"
XDG_CONFIG_HOME = "{{ joinPath .chezmoi.homeDir ".config" }}"
XDG_STATE_HOME = "{{ joinPath .chezmoi.homeDir ".local/state" }}"