diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl index 8f176fd..290278d 100644 --- a/.chezmoi.toml.tmpl +++ b/.chezmoi.toml.tmpl @@ -2,13 +2,9 @@ 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 := promptString "email" -}} [data] use_zsh_root_dir = {{ $use_zsh_root_dir }} - email = {{ $email | quote }} + email = {{ $email | quote }} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8179945..cb70237 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,5 +22,6 @@ jobs: brew install chezmoi - name: Install run: | - chezmoi init https://github.com/marchdf/dotfiles.git --branch zsh-clean - chezmoi apply -v + chezmoi init https://github.com/marchdf/dotfiles.git --branch ${GITHUB_REF##*/} --promptString email="" --promptBool use_zsh_root_dir=false + chezmoi data + # chezmoi apply -v