From 263ac0cdd583c37e9713fcd7e22ff6a70f259269 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 3 Sep 2025 12:38:50 -0500 Subject: added functionality for eshell --- modules/eshell-vterm-config.el | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'modules') diff --git a/modules/eshell-vterm-config.el b/modules/eshell-vterm-config.el index 178f23db..c882e06f 100644 --- a/modules/eshell-vterm-config.el +++ b/modules/eshell-vterm-config.el @@ -127,6 +127,30 @@ :config (setenv "TERM" "xterm-256color")) +(use-package eshell-syntax-highlighting + :after esh-mode + :config + (eshell-syntax-highlighting-global-mode +1)) + +(use-package eshell-up + :after eshell + :config + (defalias 'eshell/up 'eshell-up) + (defalias 'eshell/up-peek 'eshell-up-peek)) + +;; Enhance history searching +(defun cj/eshell-history-search () + "Search eshell history with completion." + (interactive) + (insert + (completing-read "Eshell history: " + (delete-dups + (ring-elements eshell-history-ring))))) + +(add-hook 'eshell-mode-hook + (lambda () + (define-key eshell-mode-map (kbd "C-r") 'cj/eshell-history-search))) + ;; ------------------------------ Vterm ------------------------------ ;; faster and highly dependable, but not extensible -- cgit v1.2.3