From cee0b4ef0d9b6ad3098882ded5bacbfbc0ca7ec6 Mon Sep 17 00:00:00 2001 From: Marc Henry de Frahan Date: Fri, 26 Jan 2024 16:35:57 -0700 Subject: [PATCH] test this --- .chezmoi.toml.tmpl | 10 +++------- .github/workflows/ci.yml | 5 +++-- 2 files changed, 6 insertions(+), 9 deletions(-) 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