From f705fcb98402f8c0e2165ed22d263f1927acf452 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Tue, 31 Oct 2023 11:26:36 +0800 Subject: [PATCH] Add global git-config example --- src/syntax_mapping/builtins/git-config.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/syntax_mapping/builtins/git-config.toml diff --git a/src/syntax_mapping/builtins/git-config.toml b/src/syntax_mapping/builtins/git-config.toml new file mode 100644 index 00000000..44a49a25 --- /dev/null +++ b/src/syntax_mapping/builtins/git-config.toml @@ -0,0 +1,10 @@ +# Global git config files rooted in `$XDG_CONFIG_HOME/git/` or `$HOME/.config/git/` +# See e.g. https://git-scm.com/docs/git-config#FILES + +[mappings] +"Git Config" = ["${XDG_CONFIG_HOME}/git/config", "${HOME}/.config/git/config"] +"Git Ignore" = ["${XDG_CONFIG_HOME}/git/ignore", "${HOME}/.config/git/ignore"] +"Git Attributes" = [ + "${XDG_CONFIG_HOME}/git/attributes", + "${HOME}/.config/git/attributes", +]