Skip to content

Commit

Permalink
fix: undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
senz committed Apr 21, 2024
1 parent dae4d57 commit 5a4ab1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .chezmoi.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{- $recipient := "" -}}
{{- $fullname := "" -}}
{{- if stdinIsATTY -}}
{{- # we are in interactive mode -}}
{{/* we are in interactive mode */}}
{{- $email := promptStringOnce . "email" "Email address" -}}
{{- $recipient := promptStringOnce . "recipient" "GPG recipient" -}}
{{- $fullname := promptStringOnce . "fullname" "Full name" -}}
Expand All @@ -12,9 +12,9 @@
{{- $fullname = "User" -}}
{{- end -}}

{{ if $REMOTE_CONTAINERS -}}
{{- # in devcontainer predefined source is home/dotfiles -}}
sourceDir: {{ joinPath $HOME "dotfiles" }}
{{ if not ( env "REMOTE_CONTAINERS" | empty ) -}}
{{/* # in devcontainer predefined source is home/dotfiles */}}
sourceDir: {{ joinPath env "HOME" "dotfiles" }}
{{- end -}}

encryption: "gpg"
Expand Down
4 changes: 2 additions & 2 deletions dot_gitconfig.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if not $REMOTE_CONTAINERS -}}
{{ # we do not manage git in devcontainers -}}
{{ if not ( env "REMOTE_CONTAINERS" | empty ) -}}
{{/* we do not manage git in devcontainers */}}
[user]
name = {{ .fullname }}
email = {{ .email }}
Expand Down
4 changes: 2 additions & 2 deletions dot_gitignore_global.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if not $REMOTE_CONTAINERS -}}
{{ # we do not manage git in devcontainers -}}
{{ if not ( env "REMOTE_CONTAINERS" | empty ) -}}
{{/* we do not manage git in devcontainers */}}
.env
.DS_Store
{{ end -}}

0 comments on commit 5a4ab1b

Please sign in to comment.