(Emacs/elisp)~Fix stupid typo in +eshell-prompt/--git-status

This commit is contained in:
2024-06-23 21:27:46 +01:00
parent 748c5e8360
commit e4dfbcbc5d

View File

@@ -74,7 +74,7 @@ number of files affected are returned in red."
(defun +eshell-prompt/--git-status () (defun +eshell-prompt/--git-status ()
"Returns a completely formatted string of "Returns a completely formatted string of
form (BRANCH-NAME<CHANGES>[REMOTE-STATUS])." form (BRANCH-NAME<CHANGES>[REMOTE-STATUS])."
(let ((git-branch (shell-command-to-string "git brnach"))) (let ((git-branch (shell-command-to-string "git branch")))
(if (or (string= git-branch "") (if (or (string= git-branch "")
(not (string= "*" (substring git-branch 0 1)))) (not (string= "*" (substring git-branch 0 1))))
"" ""