diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-09-21 21:20:13 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-09-21 21:20:55 +0100 |
commit | 8c95236530d1f822d52bbeec745e000fe385803c (patch) | |
tree | 71a4a424189eb2241f248480f31e732d0c1ca3bc /Emacs/.config/emacs/elisp/eshell-prompt.el | |
parent | cc6380bdc49e8d897e0b220ba17429a49fb095d1 (diff) | |
download | dotfiles-8c95236530d1f822d52bbeec745e000fe385803c.tar.gz dotfiles-8c95236530d1f822d52bbeec745e000fe385803c.tar.bz2 dotfiles-8c95236530d1f822d52bbeec745e000fe385803c.zip |
Small refactor
Diffstat (limited to 'Emacs/.config/emacs/elisp/eshell-prompt.el')
-rw-r--r-- | Emacs/.config/emacs/elisp/eshell-prompt.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Emacs/.config/emacs/elisp/eshell-prompt.el b/Emacs/.config/emacs/elisp/eshell-prompt.el index 9267469..fc39b8b 100644 --- a/Emacs/.config/emacs/elisp/eshell-prompt.el +++ b/Emacs/.config/emacs/elisp/eshell-prompt.el @@ -115,6 +115,11 @@ behind or ahead the local repository is." (diff (cl-position "by" branch-status :test #'string=))) (if (null diff) (ep/--with-fg-colour "=" ep/success-colour) + (--> diff + 1+ + (nth it branch-status) + (concat + )) (concat (cond ((string= status "ahead") |