Last active
April 22, 2023 19:01
-
-
Save chris468/42b4ec95015e7bf6aebe432e96a285a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
mkdir -p ~/.local/share/chezmoi | |
cat > .local/share/chezmoi/.chezmoi.toml.tmpl <<EOF | |
{{- \$email := promptStringOnce . "email" "Email address" -}} | |
[data] | |
email = {{ \$email | quote }} | |
EOF | |
curl -fsLS get.chezmoi.io | sh | |
export PATH="$HOME/bin:$PATH" | |
chezmoi execute-template --init --promptString email="me@home.org" < ~/.local/share/chezmoi/.chezmoi.toml.tmpl | |
chezmoi init --promptString email="me@home.org" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment