From 1ea8e7a393e34770766b4231ded16cba7315cc52 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Fri, 12 Apr 2024 00:06:41 -0500 Subject: fix(git): change gh auth config for Windows --- dot_gitconfig.tmpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index ae1d845..6405a9e 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -1,3 +1,6 @@ +# vim:ft=gitconfig +# {{- /* This file supports Go's text/template language. */ -}} + [push] autoSetupRemote = true default = current @@ -15,3 +18,12 @@ autoUpdate = true [branch] sort = committerdate + +{{ if and (eq .chezmoi.os "windows") (isExecutable "gh") -}} +[credential "https://github.com"] + helper = + helper = !'C:\\Users\\muftei\\scoop\\apps\\gh\\current\\bin\\gh.exe' auth git-credential +[credential "https://gist.github.com"] + helper = + helper = !'C:\\Users\\muftei\\scoop\\apps\\gh\\current\\bin\\gh.exe' auth git-credential +{{ end -}} -- cgit v1.2.3