mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
tools/eshell: set eshell-visual-(sub)?commands
This commit is contained in:
@ -28,6 +28,13 @@
|
||||
(set! :popup "^\\*eshell:popup\\*$" :regexp t :size 25)
|
||||
(set! :evil-state 'eshell-mode 'insert)
|
||||
|
||||
;; Visual commands require a proper terminal. Eshell can't handle that, so it
|
||||
;; delegates these commands to a term buffer.
|
||||
(setq eshell-visual-commands
|
||||
(append eshell-visual-commands
|
||||
'("less" "tmux" "htop" "top" "bash" "zsh" "fish"))
|
||||
eshell-visual-subcommands '(("git" "log" "l" "diff" "show")))
|
||||
|
||||
(defun +eshell|keymap-setup ()
|
||||
"Setup eshell keybindings. This must be done in a hook because eshell
|
||||
redefines its keys every time `eshell-mode' is enabled."
|
||||
|
Reference in New Issue
Block a user