From 3568ffd9d36ca327c4770c4fffba4ed90fb805ee Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 16 Oct 2024 16:33:13 +0100 Subject: Remove timestamp from eshell-prompt and change colour of directories --- Emacs/.config/emacs/elisp/eshell-prompt.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Emacs/.config/emacs/elisp/eshell-prompt.el b/Emacs/.config/emacs/elisp/eshell-prompt.el index f2fe41e..cce01d5 100644 --- a/Emacs/.config/emacs/elisp/eshell-prompt.el +++ b/Emacs/.config/emacs/elisp/eshell-prompt.el @@ -27,7 +27,7 @@ (defvar +eshell-prompt/user-prompt "𝜆> " "Prompt for user to input.") -(defvar +eshell-prompt/dir-colour "forestgreen") +(defvar +eshell-prompt/dir-colour "skyblue") (defvar +eshell-prompt/success-colour "forestgreen") (defvar +eshell-prompt/failure-colour "red") @@ -84,7 +84,7 @@ number of files affected are returned in red." form (BRANCH-NAME[REMOTE-STATUS])." (let ((git-branch (shell-command-to-string "git branch"))) (if (or (string= git-branch "") - (not (string= "*" (substring git-branch 0 1)))) + (not (string= "*" (substring git-branch 0 1)))) "" (format "(%s<%s>[%s])" @@ -108,9 +108,7 @@ form (BRANCH-NAME[REMOTE-STATUS])." "]" (if (string= git "") "" - (concat "-" git "")) - "\n" - `(,(format-time-string "[%H:%M:%S]") :foreground "purple") + (concat " " git)) "\n" (list "𝜆> " ':foreground (+eshell-prompt/--colour-on-last-command)))))) -- cgit v1.2.3-13-gbd6f