From ea4f67847dd543fe3dbfb28167b87f9b4aa851be Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Thu, 25 May 2023 14:44:26 -0700 Subject: [PATCH] Convert basic git to chezmoi --- git/.config/git/config => dot_config/git/config.tmpl | 2 ++ git/.config/git/ignore => dot_config/git/ignore.tmpl | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) rename git/.config/git/config => dot_config/git/config.tmpl (98%) rename git/.config/git/ignore => dot_config/git/ignore.tmpl (94%) diff --git a/git/.config/git/config b/dot_config/git/config.tmpl similarity index 98% rename from git/.config/git/config rename to dot_config/git/config.tmpl index 35ada5b..d3592bc 100644 --- a/git/.config/git/config +++ b/dot_config/git/config.tmpl @@ -1,3 +1,4 @@ +{{ if lookPath "git" -}} [core] editor = vim excludesfile = ~/.config/git/ignore @@ -62,3 +63,4 @@ writeCommitGraph = true [fetch] prune = true +{{- end }} diff --git a/git/.config/git/ignore b/dot_config/git/ignore.tmpl similarity index 94% rename from git/.config/git/ignore rename to dot_config/git/ignore.tmpl index 33b50e5..4ac9cb2 100644 --- a/git/.config/git/ignore +++ b/dot_config/git/ignore.tmpl @@ -1,3 +1,4 @@ +{{ if lookPath "git" -}} ################################################################################ ## This global gitignore file is assembled based the github gitignore project: ## https://github.com/github/gitignore @@ -32,4 +33,4 @@ Desktop.ini # Compass/sass ignores .sass-cache - +{{- end }}