Eshell: Keep history of commands exiting with non-zero
parent
11b2886c47
commit
cecb9f7163
|
@ -199,7 +199,11 @@
|
|||
;;; Eshell commands always return 0.
|
||||
(setq eshell-input-filter
|
||||
(lambda (str)
|
||||
(not (or (/= eshell-last-command-status 0)
|
||||
(not (or
|
||||
;; Here we can filter out failing commands. This is usually a bad
|
||||
;; idea since a lot of useful commands have non-zero exit codes
|
||||
;; (including Emacs/Eshell functions).
|
||||
;; (/= eshell-last-command-status 0)
|
||||
(string= "" str)
|
||||
(string-prefix-p " " str)))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue