(Emacs/elisp)~eshell-prompt for git changes
This commit is contained in:
@@ -54,9 +54,9 @@ behind or ahead the local repository is."
|
|||||||
(concat
|
(concat
|
||||||
(cond
|
(cond
|
||||||
((string= status "ahead")
|
((string= status "ahead")
|
||||||
(propertize "→ " 'font-lock-face '(:foreground "dodger blue")))
|
(propertize "→" 'font-lock-face '(:foreground "dodger blue")))
|
||||||
((string= status "behind")
|
((string= status "behind")
|
||||||
(propertize "← " 'font-lock-face '(:foreground "orange red"))))
|
(propertize "←" 'font-lock-face '(:foreground "orange red"))))
|
||||||
n)))))
|
n)))))
|
||||||
|
|
||||||
(defun +eshell-prompt/--git-change-status ()
|
(defun +eshell-prompt/--git-change-status ()
|
||||||
|
|||||||
Reference in New Issue
Block a user