diff options
author | JSDurand <mmemmew@gmail.com> | 2021-07-19 09:55:20 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2021-07-19 09:55:20 +0800 |
commit | 2e6f5935b6254577a02d7c82509171f4b7e1ce50 (patch) | |
tree | 69d9d70ae044ab0c78dc6266f2d75729ac8afe40 | |
parent | 7a524be22a2e6c20d425884b19398676788e46e5 (diff) |
fix: eshell-clear
* eshell-conf.el (eshell-clear): Now this just clears the screen and
emits a prompt, without messingup with the command history.
-rw-r--r-- | eshell-conf.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eshell-conf.el b/eshell-conf.el index 59a0150..d0fc491 100644 --- a/eshell-conf.el +++ b/eshell-conf.el @@ -47,8 +47,8 @@ (defun eshell-clear () (interactive) (delete-region eshell-last-output-end (point)) - (insert "clear t") - (eshell-send-input)) + (eshell/clear t) + (eshell-emit-prompt)) ;;;###autoload (defun eshell/j (&rest args) |