Fix eshell error "C-c" not prefix.

This commit is contained in:
MitchMarq42 2022-11-20 13:44:19 -09:00
parent 64cb0edc5d
commit f3649541a8

View File

@ -139,6 +139,8 @@
(eshell-scroll-to-bottom-on-input t)
(eshell-hist-ignoredups t)
:config
(evil-collection-define-key 'insert 'eshell-mode-map
(kbd "C-c") 'eshell-interrupt-process)
(add-to-list 'eshell-modules-list 'eshell-rebind)
(defun eshell-evil-insert-line (count &optional vcount)
(interactive "p")
@ -164,18 +166,7 @@ This is taken from a website that I can't remember at the moment."
(replace-match "" t nil)))
(progn
(eshell-bol)
(insert "sudo "))))))
:general
(general-define-key
:states 'normal
:keymaps 'eshell-mode-map
"I" 'eshell-evil-insert-line
"C-c" 'evil-collection-eshell-interrupt-process)
(general-define-key
:states 'insert
:keymaps 'eshell-mode-map
"C-L" 'aweshell-sudo-toggle
"C-c" 'eshell-interrupt-process))
(insert "sudo ")))))))
(use-package eshell-vterm
:after eshell
:custom (eshell-destroy-buffer-when-process-dies t)