diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl index dad1c7d..2faf42d 100644 --- a/.chezmoi.toml.tmpl +++ b/.chezmoi.toml.tmpl @@ -2,13 +2,11 @@ command = "emacs" args = ["-nw"] -{{ $email := "" }} -{{ $use_zsh_root_dir := false }} -{{ if stdinIsATTY }} -{{- $use_zsh_root_dir = promptBool "Use ZSH_ROOT_DIR for tmux shell" }} -{{ $email = promptString "email" -}} -{{ end }} +{{ $use_zsh_root_dir := promptBoolOnce . "use_zsh_root_dir" "Use ZSH_ROOT_DIR for tmux shell" }} +{{ $email := promptStringOnce . "email" "email" -}} +{{ $test_machine := promptBoolOnce . "test_machine" "test_machine" }} [data] use_zsh_root_dir = {{ $use_zsh_root_dir }} - email = {{ $email | quote }} \ No newline at end of file + email = {{ $email | quote }} + test_machine = {{ $test_machine }} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77c7750..689c868 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,6 @@ jobs: run: | export BRANCH=${{ github.head_ref || github.ref_name }} echo $BRANCH - chezmoi init https://github.com/marchdf/dotfiles.git --branch ${BRANCH} + chezmoi init https://github.com/marchdf/dotfiles.git --branch ${BRANCH} --promptBool test=t,use_zsh_root_dir=f --promptString email="" chezmoi data # chezmoi apply -v