[Emacs] Fix git prompt in Eshell
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lucien Cartier-Tilet 2020-10-22 02:03:30 +02:00
parent 070b61ef00
commit b97bbf8206
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -1945,7 +1945,8 @@
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defun eshell/my-prompt () (defun eshell/my-prompt ()
(let* ((header-bg phundrak/nord0) (let* ((header-bg phundrak/nord0)
($path (phundrak/abbr-pwd phundrak/prompt--abbreviate)) ($path (phundrak/abbr-pwd))
($abbr-path (phundrak/abbr-pwd phundrak/prompt--abbreviate))
($background nord1)) ($background nord1))
(concat (with-face " " :background $background) (concat (with-face " " :background $background)
(with-face $path (with-face $path