[Emacs] Additional tweaks for Eshell prompt
This commit is contained in:
parent
d51b59a963
commit
8178eefc14
@ -1898,22 +1898,20 @@
|
|||||||
(let* ((header-bg phundrak/nord0)
|
(let* ((header-bg phundrak/nord0)
|
||||||
($path (eshell/abbr-pwd))
|
($path (eshell/abbr-pwd))
|
||||||
($background nord1))
|
($background nord1))
|
||||||
(concat (with-face $path
|
(concat (with-face " " :background $background)
|
||||||
|
(with-face $path
|
||||||
:foreground phundrak/nord14
|
:foreground phundrak/nord14
|
||||||
:background $background)
|
:background $background)
|
||||||
;; add git status if it exists
|
;; add git status if it exists
|
||||||
(if (magit-toplevel $path)
|
|
||||||
(concat
|
|
||||||
(with-face " " :background $background)
|
|
||||||
(phundrak/eshell-git-status $path $background)))
|
|
||||||
(with-face " " :background $background)
|
(with-face " " :background $background)
|
||||||
(if (zerop eshell-last-command-status)
|
(if (magit-toplevel $path)
|
||||||
(with-face "λ"
|
(phundrak/eshell-git-status $path $background))
|
||||||
:foreground phundrak/nord10
|
(with-face " " :background $background)
|
||||||
:background $background)
|
(with-face "λ"
|
||||||
(with-face "λ"
|
:foreground (if (zerop eshell-last-command-status)
|
||||||
:foreground phundrak/nord11
|
phundrak/nord10
|
||||||
:background $background))
|
phundrak/nord11)
|
||||||
|
:background $background)
|
||||||
(with-face " " :background $background)
|
(with-face " " :background $background)
|
||||||
(with-face "" :foreground $background)
|
(with-face "" :foreground $background)
|
||||||
" ")))
|
" ")))
|
||||||
|
Loading…
Reference in New Issue
Block a user