Fix eshell error "C-c" not prefix.
This commit is contained in:
parent
64cb0edc5d
commit
f3649541a8
@ -139,6 +139,8 @@
|
|||||||
(eshell-scroll-to-bottom-on-input t)
|
(eshell-scroll-to-bottom-on-input t)
|
||||||
(eshell-hist-ignoredups t)
|
(eshell-hist-ignoredups t)
|
||||||
:config
|
:config
|
||||||
|
(evil-collection-define-key 'insert 'eshell-mode-map
|
||||||
|
(kbd "C-c") 'eshell-interrupt-process)
|
||||||
(add-to-list 'eshell-modules-list 'eshell-rebind)
|
(add-to-list 'eshell-modules-list 'eshell-rebind)
|
||||||
(defun eshell-evil-insert-line (count &optional vcount)
|
(defun eshell-evil-insert-line (count &optional vcount)
|
||||||
(interactive "p")
|
(interactive "p")
|
||||||
@ -164,18 +166,7 @@ This is taken from a website that I can't remember at the moment."
|
|||||||
(replace-match "" t nil)))
|
(replace-match "" t nil)))
|
||||||
(progn
|
(progn
|
||||||
(eshell-bol)
|
(eshell-bol)
|
||||||
(insert "sudo "))))))
|
(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))
|
|
||||||
(use-package eshell-vterm
|
(use-package eshell-vterm
|
||||||
:after eshell
|
:after eshell
|
||||||
:custom (eshell-destroy-buffer-when-process-dies t)
|
:custom (eshell-destroy-buffer-when-process-dies t)
|
||||||
|
Loading…
Reference in New Issue
Block a user