From 247d19b5d436f7f4b6da94f79b0ebb56851aadeb Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 25 Sep 2025 00:36:32 +0100 Subject: Bunch of changes fr fr --- Emacs/.config/emacs/elisp/eshell-prompt.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Emacs/.config/emacs/elisp') 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 -- cgit v1.2.3-13-gbd6f