diff options
| author | Ibrahim Muftee <ibrahim@muftee.net> | 2025-09-08 15:52:48 -0500 |
|---|---|---|
| committer | Ibrahim Muftee <ibrahim@muftee.net> | 2026-07-01 00:23:31 -0400 |
| commit | 34a621ea75a7ec5d29804b307017882fabec4299 (patch) | |
| tree | eb15fbb84cf59da83687b1f9c1b3b3e250a38c1d | |
| parent | f7e750f6c3b1c81fb93841a7fdbd209d00b7134a (diff) | |
feat(git) add .jj to user scoped gitignore
| -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 |
