tools/eshell: set eshell-visual-(sub)?commands properly

This commit is contained in:
Henrik Lissner 2017-05-12 12:07:28 +02:00
parent 388e5b4711
commit 2c68a41adb

View file

@ -28,12 +28,11 @@
(set! :popup "^\\*eshell:popup\\*$" :regexp t :size 25) (set! :popup "^\\*eshell:popup\\*$" :regexp t :size 25)
(set! :evil-state 'eshell-mode 'insert) (set! :evil-state 'eshell-mode 'insert)
(after! em-term
;; Visual commands require a proper terminal. Eshell can't handle that, so it ;; Visual commands require a proper terminal. Eshell can't handle that, so it
;; delegates these commands to a term buffer. ;; delegates these commands to a term buffer.
(setq eshell-visual-commands (nconc eshell-visual-commands '("tmux" "htop" "bash" "zsh" "fish" "vim" "nvim"))
(append eshell-visual-commands (setq eshell-visual-subcommands '(("git" "log" "l" "diff" "show"))))
'("less" "tmux" "htop" "top" "bash" "zsh" "fish"))
eshell-visual-subcommands '(("git" "log" "l" "diff" "show")))
(defun +eshell|keymap-setup () (defun +eshell|keymap-setup ()
"Setup eshell keybindings. This must be done in a hook because eshell "Setup eshell keybindings. This must be done in a hook because eshell