Read username from git config github.user

Falls back to user-login-name otherwise.
This commit is contained in:
Henrik Lissner 2021-01-27 22:08:46 -05:00
parent 30e6862a29
commit 334e054ab0

View file

@ -2,7 +2,7 @@
;;
;; Copyright (C) `(format-time-string "%Y")` `user-full-name`
;;
;; Author: `user-full-name` <https://github.com/`user-login-name`>
;; Author: `user-full-name` <https://github.com/`(cl-find-if-not #'string-empty-p (list (cdr (doom-call-process "git" "config" "github.user")) user-login-name))`>
;; Maintainer: `user-full-name` <`user-mail-address`>
;; Created: `(format-time-string "%B %d, %Y")`
;; Modified: `(format-time-string "%B %d, %Y")`