diff options
| -rw-r--r-- | .chezmoi.toml.tmpl | 8 | ||||
| -rw-r--r-- | dot_gitconfig.tmpl | 6 | ||||
| -rw-r--r-- | dot_gitignore | 1 |
3 files changed, 9 insertions, 6 deletions
diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl index e25775c..1c7d8aa 100644 --- a/.chezmoi.toml.tmpl +++ b/.chezmoi.toml.tmpl @@ -14,7 +14,7 @@ {{ $git_email := promptStringOnce . "git_email" "Email address for Git global config" -}} {{ $git_name := promptStringOnce . "git_name" "Display name for Git global config" -}} -{{ $enable_nvim_copilot := promptBoolOnce . "enable_nvim_copilot" "Enable features related to GitHub Copilot" -}} +{{ $work := promptBoolOnce . "work" "Identify if machine is for work" -}} {{ if eq .chezmoi.os "windows" -}} [cd] @@ -27,14 +27,10 @@ [data] git_email = {{ $git_email | quote }} git_name = {{ $git_name | quote }} - enable_nvim_copilot = {{ $enable_nvim_copilot }} + work = {{ $work }} [diff] exclude = ["scripts"] [edit] command = "nvim" - -[git] - autoCommit = true - commitMessageTemplate = "{{ promptString \"Commit message\" }}" diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 29613da..0abe1e4 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -9,6 +9,12 @@ {{/* This file supports Go's text/template language. */ -}} +[core] + {{ if .work -}} + excludesfile = !/home/u_muftei/.gitignore + {{ else -}} + excludesfile = !/home/ibrahim/.gitignore + {{ end -}} [init] defaultBranch = main [push] diff --git a/dot_gitignore b/dot_gitignore new file mode 100644 index 0000000..40c4390 --- /dev/null +++ b/dot_gitignore @@ -0,0 +1 @@ +.jj |
