12
12
#
13
13
# This file supports Go's text/template language. */}}
14
14
15
+ {{ $codespaces := env "DEVPOD" | not | not -}}
16
+ sourceDir = {{ .chezmoi.sourceDir | quote }}
17
+
15
18
{{ $name := "" -}}
16
19
{{ $email := "" -}}
17
20
{{ $signingkey := "" -}}
18
21
{{ $colortheme := "" -}}
19
- {{ $disable_bash_history := false }}
20
- {{- if stdinIsATTY -}}
22
+ {{ $disable_bash_history := false -}}
23
+
24
+ {{- if $codespaces -}}
25
+ {{ $name = "Torgny Bjers" -}}
26
+ {{ $email = "[email protected] " -}}
27
+ {{ $signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDEVS22aLustrLsDLdrOUJwdOB4UAz9VfmvsWCr9FZYF" -}}
28
+ {{ $colortheme = "dracula" -}}
29
+ {{- else if stdinIsATTY -}}
21
30
{{ $name = promptStringOnce . "name" "Name" -}}
22
31
{{ $email = promptStringOnce . "email" "Email address" -}}
23
32
{{ $signingkey = promptStringOnce . "signingkey" "Signing key" -}}
24
33
{{ $colortheme = promptStringOnce . "colortheme" "Color theme (nord/dracula/dracula-pro/gruvbox-dark)" -}}
25
- {{ $disable_bash_history = promptBoolOnce . "disable_bash_history" "Disable bash history" }}
34
+ {{ $disable_bash_history = promptBoolOnce . "disable_bash_history" "Disable bash history" - }}
26
35
{{- end -}}
27
36
28
37
{{- $osid := .chezmoi.os -}}
36
45
format = " json"
37
46
color = " on"
38
47
umask = 0o022
48
+ {{- if $codespaces }}{{- else }}
39
49
progress = true
50
+ {{- end }}
40
51
41
52
[data ]
53
+ codespaces = {{ $codespaces }}
42
54
email = {{ $email | quote }}
43
55
name = {{ $name | quote }}
44
56
signingkey = {{ $signingkey | quote }}
45
57
osid = {{ $osid | lower | quote }}
46
58
colortheme = {{ $colortheme | quote }}
47
59
disable_bash_history = {{ $disable_bash_history }}
48
- lazygit = ' {{ (gitHubLatestRelease "jesseduffield/lazygit").TagName | replace "v" "" }}'
49
60
50
61
[diff ]
51
62
exclude = [" scripts" ]
@@ -61,4 +72,4 @@ progress = true
61
72
options = [" missingkey=error" ]
62
73
63
74
[hooks .read-source-state .pre ]
64
- command = " .local/share/ chezmoi/.hook-scripts/pre-source-state.sh"
75
+ command = " {{ . chezmoi.sourceDir }} /.hook-scripts/pre-source-state.sh"
0 commit comments