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 }}