refactor(eshell): eshell-prompt-regexp

This new default makes eshell-prompt-regexp's consumers a little less
susceptible to false positives in garbage/process output and a little
more resistant to user changes to eshell-prompt-function. It's also
closer to its default value (KISS).
This commit is contained in:
Henrik Lissner 2023-11-24 10:25:34 -05:00
parent fba1d4005e
commit e4b1ed5a6a
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -69,7 +69,7 @@ You should use `set-eshell-alias!' to change this.")
;; TODO Use `eshell-input-filter-initial-space' when Emacs 25 support is dropped ;; TODO Use `eshell-input-filter-initial-space' when Emacs 25 support is dropped
eshell-input-filter (lambda (input) (not (string-match-p "\\`\\s-+" input))) eshell-input-filter (lambda (input) (not (string-match-p "\\`\\s-+" input)))
;; em-prompt ;; em-prompt
eshell-prompt-regexp "^.* λ " eshell-prompt-regexp "^[^#$\n]* [#$λ] "
eshell-prompt-function #'+eshell-default-prompt-fn eshell-prompt-function #'+eshell-default-prompt-fn
;; em-glob ;; em-glob
eshell-glob-case-insensitive t eshell-glob-case-insensitive t