aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-06-27 16:04:14 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-06-27 16:04:14 +0100
commit3588b0371311f744621b243d117bab58959c2a89 (patch)
tree35f35eba565b5a60e5c454ee08203e331d639873
parentdf99c034f7bd2221eff99aa4c81785c3c92af0df (diff)
downloaddotfiles-3588b0371311f744621b243d117bab58959c2a89.tar.gz
dotfiles-3588b0371311f744621b243d117bab58959c2a89.tar.bz2
dotfiles-3588b0371311f744621b243d117bab58959c2a89.zip
(Emacs/elisp)~fix eshell-prompt not showing changed files correctly
Simple fix as I didn't call the command before splitting the string
-rw-r--r--Emacs/.config/emacs/elisp/eshell-prompt.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/elisp/eshell-prompt.el b/Emacs/.config/emacs/elisp/eshell-prompt.el
index 53033df..8c156b8 100644
--- a/Emacs/.config/emacs/elisp/eshell-prompt.el
+++ b/Emacs/.config/emacs/elisp/eshell-prompt.el
@@ -65,7 +65,7 @@ a repository. If there are no changes i.e. the worktree is clean
then a green tick is returned, but if there are changes then the
number of files affected are returned in red."
(let* ((git-cmd "git status -s")
- (command-output (split-string git-cmd))
+ (command-output (split-string (shell-command-to-string git-cmd) "\n"))
(changed-files (- (length command-output) 1)))
(if (= changed-files 0)
(propertize "✓" 'font-lock-face '(:foreground "green"))