From add0927e759b2cefe12f643c222ee8a6afdd2298 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Wed, 13 Aug 2025 21:28:25 -0500 Subject: feat(git): fix gh path for macos --- dot_gitconfig.tmpl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 92f7d49..29613da 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -35,7 +35,6 @@ autoUpdate = true [branch] sort = committerdate - {{ if eq .chezmoi.os "windows" -}} [credential "https://github.com"] helper = @@ -43,7 +42,14 @@ [credential "https://gist.github.com"] helper = helper = !'C:\\Program Files\\GitHub CLI\\gh.exe' auth git-credential -{{ else }} +{{ else if eq .chezmoi.os "darwin" -}} +[credential "https://github.com"] + helper = + helper = !/opt/homebrew/bin/gh auth git-credential +[credential "https://gist.github.com"] + helper = + helper = !/opt/homebrew/bin/gh auth git-credential +{{ else -}} [credential "https://github.com"] helper = helper = !/usr/bin/gh auth git-credential -- cgit v1.2.3