[user] name = {{ .name | quote }} {{- if eq .hosttype "work" }} email = {{ .email_work | quote }} {{- else }} email = {{ .email_personal | quote }} {{- end }} [git] private-commits = "description(glob:'private:*') | bookmarks('merge')" [templates] {{- if eq .hosttype "work" }} git_push_bookmark = '"2025_{{ .github_work }}_jj_" ++ change_id.short()' {{- else }} git_push_bookmark = '"{{ .github_personal }}_jj_" ++ change_id.short()' {{- end }} [colors] "diff removed token" = { fg = "red", underline = false } "diff added token" = { fg = "green", underline = false } [revset-aliases] "immutable_heads()" = "builtin_immutable_heads() | (trunk().. & ~mine())" "why_immutable(r)" = "r | roots(r:: & immutable_heads())" [aliases] l = ["log", "-r", "(trunk()..@):: | (trunk()..@)-"] refresh = ["rebase", "-s", "roots(trunk()..@)", "-d", "trunk()"] insert = ["rebase", "-r", "@", "--before", "merge", "--after", "trunk()"] bdiff = ["diff", "-r", "(trunk()..@)::"] [ui] default-command = ["log"] diff-formatter = ":git" {{ if eq .hosttype "work" -}} [[--scope]] --when.repositories = ["~/projects/personal", "~/.local/share/chezmoi"] [--scope.user] email = {{ .email_personal | quote }} [--scope.templates] git_push_bookmark = '"{{ .github_personal }}_jj_" ++ change_id.short()' {{- end }}