Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Jan 27, 2024
1 parent 16ff8de commit 7dea160
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions .chezmoi.toml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
email = {{ $email | quote }}
test_machine = {{ $test_machine }}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7dea160

Please sign in to comment.