tweak(eshell): bind C-l to clear-scrollback

Make C-l have the same behavior as the clear alias by clearing the
scrollback.
This commit is contained in:
Benjamin Levy 2021-11-21 13:05:18 -05:00 committed by GitHub
parent 5962db9f49
commit 012b97fafb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,7 +147,7 @@ You should use `set-eshell-alias!' to change this.")
[remap evil-window-split] #'+eshell/split-below [remap evil-window-split] #'+eshell/split-below
[remap evil-window-vsplit] #'+eshell/split-right [remap evil-window-vsplit] #'+eshell/split-right
;; To emulate terminal keybinds ;; To emulate terminal keybinds
"C-l" #'eshell/clear "C-l" (cmd! (eshell/clear-scrollback) (eshell-emit-prompt))
(:localleader (:localleader
"b" #'eshell-insert-buffer-name "b" #'eshell-insert-buffer-name
"e" #'eshell-insert-envvar "e" #'eshell-insert-envvar