aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-10-16 16:33:13 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-10-16 16:33:13 +0100
commit3568ffd9d36ca327c4770c4fffba4ed90fb805ee (patch)
treea21bed8c2a50a41520b59e1f665c701daa3968d8
parentf1b4f6eed49b328f25472c397f8d91314674e261 (diff)
downloaddotfiles-3568ffd9d36ca327c4770c4fffba4ed90fb805ee.tar.gz
dotfiles-3568ffd9d36ca327c4770c4fffba4ed90fb805ee.tar.bz2
dotfiles-3568ffd9d36ca327c4770c4fffba4ed90fb805ee.zip
Remove timestamp from eshell-prompt and change colour of directories
-rw-r--r--Emacs/.config/emacs/elisp/eshell-prompt.el8
1 files 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<CHANGES>[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<CHANGES>[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))))))