diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-09-25 00:36:32 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-09-25 00:36:32 +0100 |
commit | 247d19b5d436f7f4b6da94f79b0ebb56851aadeb (patch) | |
tree | 5ac223b73db7bf48880774ab2d44c78186542e73 /Emacs/.config/emacs/elisp/eshell-prompt.el | |
parent | 5150ad453e5b28662c10d719012b6446e6d01ff1 (diff) | |
download | dotfiles-247d19b5d436f7f4b6da94f79b0ebb56851aadeb.tar.gz dotfiles-247d19b5d436f7f4b6da94f79b0ebb56851aadeb.tar.bz2 dotfiles-247d19b5d436f7f4b6da94f79b0ebb56851aadeb.zip |
Bunch of changes fr fr
Diffstat (limited to 'Emacs/.config/emacs/elisp/eshell-prompt.el')
-rw-r--r-- | Emacs/.config/emacs/elisp/eshell-prompt.el | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Emacs/.config/emacs/elisp/eshell-prompt.el b/Emacs/.config/emacs/elisp/eshell-prompt.el index fc39b8b..b6d0bd0 100644 --- a/Emacs/.config/emacs/elisp/eshell-prompt.el +++ b/Emacs/.config/emacs/elisp/eshell-prompt.el @@ -115,18 +115,15 @@ 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") (ep/--with-fg-colour "→" ep/ahead-colour)) ((string= status "behind") (ep/--with-fg-colour "←" ep/failure-colour))) - (nth (1+ diff) branch-status))))) + (thread-first diff + 1+ + (nth branch-status)))))) (defun ep/--git-change-status () "Returns a propertized string for the condition of the worktree in |