diff --git a/.chezmoi.yaml.tmpl b/.chezmoi.yaml.tmpl new file mode 100644 index 0000000..0374d3b --- /dev/null +++ b/.chezmoi.yaml.tmpl @@ -0,0 +1,14 @@ +# ~/.local/share/chezmoi/.chezmoi.yaml.tmpl +# ============================================================================= +# Used to customize configuration when doing a `chezmoi init`. + +{{- $git_email := "" }} +{{- $git_name := "" }} +{{ if stdinIsATTY }} + {{- $git_email = promptString "Git email address for the author/committer" }} + {{- $git_name = promptString "Git username for the author/committer (Firstname Lastname)" }} +{{ end }} + +data: + git_email: "{{ $git_email }}" + git_name: "{{ $git_name }}" diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c7a3f9e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + + +[*.md] +# Keep trailing whitespaces as they have meaning on Markdown interpretation. +trim_trailing_whitespace = false + +[*.{ps1,psd1,psm1,ps1xml}] +# Set line endings to Windows style for powershell files. +end_of_line = crlf