mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-15 13:23:42 -05:00
Use shrink-path on eshell PWD in default prompt
Makes longer paths easier to deal with.
This commit is contained in:
@@ -63,7 +63,9 @@
|
||||
;;;###autoload
|
||||
(defun +eshell-prompt ()
|
||||
"Generate the prompt string for eshell. Use for `eshell-prompt-function'."
|
||||
(concat (propertize (abbreviate-file-name (eshell/pwd)) 'face '+eshell-prompt-pwd)
|
||||
(concat (if (bobp) "" "\n")
|
||||
(propertize (abbreviate-file-name (shrink-path-file (eshell/pwd)))
|
||||
'face '+eshell-prompt-pwd)
|
||||
(propertize (+eshell--current-git-branch) 'face '+eshell-prompt-git-branch)
|
||||
(propertize " λ " 'face '+eshell-prompt-char)))
|
||||
|
||||
|
Reference in New Issue
Block a user