diff options
| author | Ibrahim Muftee <ibrahim@muftee.net> | 2025-08-13 21:28:25 -0500 |
|---|---|---|
| committer | Ibrahim Muftee <ibrahim@muftee.net> | 2026-07-01 00:23:31 -0400 |
| commit | add0927e759b2cefe12f643c222ee8a6afdd2298 (patch) | |
| tree | e05983e9929b2cb97a714092b7afd94755210a9e | |
| parent | a5dda94df43ebfb3607573199b6cdd0fd885a963 (diff) | |
feat(git): fix gh path for macos
| -rw-r--r-- | dot_gitconfig.tmpl | 10 |
1 files 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 |
