diff options
| -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 |
