summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config/git/config7
-rw-r--r--emacs/custom/fcuny-git.el3
2 files changed, 9 insertions, 1 deletions
diff --git a/config/git/config b/config/git/config
index 1001b1a..3b3a83b 100644
--- a/config/git/config
+++ b/config/git/config
@@ -20,3 +20,10 @@
 
 [init]
 	defaultBranch = main
+
+[credential "https://github.com"]
+	username = fcuny
+
+[credential "https://git.fcuny.net"]
+	username = fcuny
+	helper = "!echo -n 'password='; pass git/git.fcuny.net"
diff --git a/emacs/custom/fcuny-git.el b/emacs/custom/fcuny-git.el
index 3ca7933..5573f70 100644
--- a/emacs/custom/fcuny-git.el
+++ b/emacs/custom/fcuny-git.el
@@ -83,7 +83,8 @@
   (forge-database-file (expand-file-name "forge-database-file.sqlite" fcuny/path-emacs-var))
   (auth-sources `(,(expand-file-name "authinfo.gpg" fcuny/path-emacs-etc)))
   :config
-  (add-to-list 'forge-alist '("git.fcuny.net:222" "git.fcuny.net/api/v1" "git.fcuny.net" forge-gitea-repository)))
+  (add-to-list 'forge-alist '("git.fcuny.net:222" "git.fcuny.net/api/v1" "git.fcuny.net" forge-gitea-repository))
+  (add-to-list 'forge-alist '("git.fcuny.net" "git.fcuny.net/api/v1" "git.fcuny.net" forge-gitea-repository)))
 
 (use-package git-link
   :ensure t