summaryrefslogtreecommitdiff
path: root/dot_gitconfig.tmpl
diff options
context:
space:
mode:
authorIbrahim Muftee <ibrahim@muftee.net>2024-04-15 16:18:15 -0500
committerIbrahim Muftee <ibrahim@muftee.net>2026-07-01 00:23:31 -0400
commit5a02065c2537412a84ea0fd9774530329993fc1d (patch)
treeb34d58f9e4a96425fc9750fa8d29f0ea20358986 /dot_gitconfig.tmpl
parent6a42d9c7d3d3820d91befb4cfc999bd5f90a062f (diff)
fix(git): add linux gh auth support
Diffstat (limited to 'dot_gitconfig.tmpl')
-rw-r--r--dot_gitconfig.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl
index 3e40f5d..d59a8a1 100644
--- a/dot_gitconfig.tmpl
+++ b/dot_gitconfig.tmpl
@@ -25,4 +25,11 @@
[credential "https://gist.github.com"]
helper =
helper = !'C:\\Users\\muftei\\scoop\\apps\\gh\\current\\bin\\gh.exe' auth git-credential
+{{ else }}
+[credential "https://github.com"]
+ helper =
+ helper = !/usr/bin/gh auth git-credential
+[credential "https://gist.github.com"]
+ helper =
+ helper = !/usr/bin/gh auth git-credential
{{ end -}}