Skip to content

Commit

Permalink
Add chezmoi configuration file
Browse files Browse the repository at this point in the history
Author:    Bernardo Menicagli <[email protected]>
Date:      Thu Apr 25 16:14:18 2024 +0200
  • Loading branch information
{{ .git_name }} authored and browser-bug committed Apr 25, 2024
1 parent 89d7967 commit 79a0797
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .chezmoi.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -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 }}"
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 79a0797

Please sign in to comment.