Skip to content

Instantly share code, notes, and snippets.

@chris468
Last active April 22, 2023 19:01
Show Gist options
  • Save chris468/42b4ec95015e7bf6aebe432e96a285a2 to your computer and use it in GitHub Desktop.
Save chris468/42b4ec95015e7bf6aebe432e96a285a2 to your computer and use it in GitHub Desktop.
#!/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