Skip to content

Commit

Permalink
better prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Jan 26, 2024
1 parent 2f30f85 commit 8af9ee0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .chezmoi.toml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
command = "emacs"
args = ["-nw"]

{{- $use_zsh_root_dir := promptBoolOnce . "use_zsh_root_dir" "Use ZSH_ROOT_DIR for tmux shell" }}
{{ $email := promptString "email" -}}
{{ $email := "" }}
{{ $use_zsh_root_dir := false }}
{{ if stdinIsATTY }}
{{- $use_zsh_root_dir = promptBool "Use ZSH_ROOT_DIR for tmux shell" }}
{{ $email = promptString "email" -}}
{{ end }}

[data]
use_zsh_root_dir = {{ $use_zsh_root_dir }}
Expand Down

0 comments on commit 8af9ee0

Please sign in to comment.