added custom eshell prompt

This commit is contained in:
a. fox 2024-03-07 00:03:01 -05:00
parent a8505d440c
commit 1ce57a284e
1 changed files with 21 additions and 1 deletions

View File

@ -952,7 +952,27 @@ What follows from here is loading and configuring the rest of my packages utiliz
:ensure t)
(use-package eshell
:bind ("C-x M-e" . eshell))
:bind ("C-x M-e" . eshell)
:custom
((eshell-prompt-function
(lambda()
(concat
(funcall #'(lambda (p-lst)
(if (> (length p-lst) 1)
(concat
(mapconcat (lambda (elm)
(unless (equal elm "") (substring elm 0 1)))
(butlast p-lst (- (length p-lst)
(1- (length p-lst))))
"/")
"/"
(mapconcat #'identity
(last p-lst (- (length p-lst)
(1- (length p-lst))))
"/"))
(mapconcat #'identity p-lst "/")))
(split-string "~/Documents/EmacsConfig/fonts/testing" "/"))
(if (= (user-uid) 0) " # " " $ "))))))
(use-package info-look
:ensure t)