aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/elisp/eshell-prompt.el
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs/.config/emacs/elisp/eshell-prompt.el')
-rw-r--r--Emacs/.config/emacs/elisp/eshell-prompt.el9
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