diff options
| author | Grégoire Duchêne <gregoire@awhk.org> | 2026-09-27 22:30:10 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gregoire@awhk.org> | 2026-09-27 22:30:10 +0100 |
| commit | 9f0333455366f769078eb95a37f637b40e3fd059 (patch) | |
| tree | 32443b640d9e105196cd815ac9e53a5415e18f8d | |
| parent | 1ff207f64a9fc5e35ecc7253704c99f43d6474a9 (diff) | |
emacs: Simplify ‘my/eshell-clear’
| -rw-r--r-- | emacs/init.el | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/emacs/init.el b/emacs/init.el index cf4eae7..4506d0b 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -242,12 +242,7 @@ (eshell))) (defun my/eshell-clear () (interactive) - (if eshell-foreground-command - (eshell/clear-scrollback) - (let ((input (eshell-get-old-input))) - (eshell/clear-scrollback) - (eshell-emit-prompt) - (insert input)))) + (eshell/clear-scrollback)) (add-to-list 'eshell-variable-aliases-list `("TERM" ,(lambda () "xterm-256colors") t t)) :bind (("C-c e" . my/eshell) |
