Make the leading space optional
The first time eshell starts it won't yet have printed such a space.
This commit is contained in:
parent
46359b0e42
commit
0419f1ba92
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ which doesn't accept at least one space will break."
|
||||||
(let ((first (aref eshell-prompt-regexp 0)))
|
(let ((first (aref eshell-prompt-regexp 0)))
|
||||||
(when (eql first ?^)
|
(when (eql first ?^)
|
||||||
(setq eshell-prompt-regexp
|
(setq eshell-prompt-regexp
|
||||||
(format "%c %s" first (substring eshell-prompt-regexp 1))))))
|
(format "%c ?%s" first (substring eshell-prompt-regexp 1))))))
|
||||||
|
|
||||||
(defun efs--revert-prompt-regexp ()
|
(defun efs--revert-prompt-regexp ()
|
||||||
"The counterpart for `efs--extend-prompt-regexp', remove a space.
|
"The counterpart for `efs--extend-prompt-regexp', remove a space.
|
||||||
|
@ -83,7 +83,7 @@ disabling the mode."
|
||||||
(when (and (eql first ?^)
|
(when (and (eql first ?^)
|
||||||
(eql (aref eshell-prompt-regexp 1) ?\s))
|
(eql (aref eshell-prompt-regexp 1) ?\s))
|
||||||
(setq eshell-prompt-regexp
|
(setq eshell-prompt-regexp
|
||||||
(format "%c%s" first (substring eshell-prompt-regexp 2))))))
|
(format "%c%s" first (substring eshell-prompt-regexp 3))))))
|
||||||
|
|
||||||
(defun eshell-fringe-status ()
|
(defun eshell-fringe-status ()
|
||||||
"Display an indication of the last command's exit status.
|
"Display an indication of the last command's exit status.
|
||||||
|
|
Loading…
Reference in a new issue