diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl index 3e73c0b..c5b3469 100644 --- a/.chezmoi.toml.tmpl +++ b/.chezmoi.toml.tmpl @@ -7,8 +7,7 @@ {{- $headless := promptBool "headless" $headlessGuess -}} {{- $gpgconfigured := promptBool "gpgconfigured" $gpgconfiguredGuess -}} {{- $autoGit := promptBool "auto git?" true -}} -{{- $spellcheckGuess := true -}} -{{- $spellcheck := promptBool "spellcheck" $spellcheckGuess -}} +{{- $spellcheck := or (lookPath "hunspell" | not | not) (lookPath "aspell" | not | not) (lookPath "ispell" | not | not) -}} {{- $gitUserName := promptString "git user.name" (trim (output "sh" "-c" "git config --get user.name 2>/dev/null || getent passwd $(id -un) | cut -d ':' -f5 | cut -d ',' -f1 || getent passwd $(id -un) | cut -d ':' -f1")) -}} {{- $gitUserEmail := promptString "git user.email" (trim (output "sh" "-c" "git config --get user.email 2>/dev/null || true")) -}} {{- $generatedTime := now | date "2006-01-02 15:04:05 -0700" -}}