From 21fe6d51e6826b13faed6e62da4888c56f0614e8 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Wed, 4 Jul 2018 13:26:48 -0500 Subject: [PATCH] .gitconfig: Introduce modular include-able config files --- .gitconfig | 3 +++ .gitfiles/config/diff-json | 4 ++++ .gitfiles/config/diff-m | 4 ++++ .gitignore | 1 + 4 files changed, 12 insertions(+) create mode 100644 .gitfiles/config/diff-json create mode 100644 .gitfiles/config/diff-m diff --git a/.gitconfig b/.gitconfig index 2bfdc9b..d45b6ef 100644 --- a/.gitconfig +++ b/.gitconfig @@ -89,3 +89,6 @@ [push] default = matching + +[include] + path = .gitconfig.local diff --git a/.gitfiles/config/diff-json b/.gitfiles/config/diff-json new file mode 100644 index 0000000..8593f07 --- /dev/null +++ b/.gitfiles/config/diff-json @@ -0,0 +1,4 @@ +[diff "json"] + textconv = "cat \"$1\" | json_pp -json_opt canonical,indent,space_after" + +# vim: ft=gitconfig diff --git a/.gitfiles/config/diff-m b/.gitfiles/config/diff-m new file mode 100644 index 0000000..7b5d8b9 --- /dev/null +++ b/.gitfiles/config/diff-m @@ -0,0 +1,4 @@ +[diff "m"] + wordregex = "[%]?[[:alnum:]]+|[0-9.]+" # MUMPS variable-name pattern + +# vim: ft=gitconfig diff --git a/.gitignore b/.gitignore index 15371a2..42d1fab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .bash_history +.gitconfig.local .keychain/ .lesshst .shenv -- 2.45.2