From b93184ed235dc763f98ef13c664ce413c412b1e0 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Mon, 30 Sep 2024 22:14:59 -0700 Subject: [PATCH] Further eshell configuration --- thoom-emacs/init.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/thoom-emacs/init.el b/thoom-emacs/init.el index dc252e1..c885dd6 100644 --- a/thoom-emacs/init.el +++ b/thoom-emacs/init.el @@ -832,13 +832,16 @@ :bind (("M-`" . eshell)) :config (setq eshell-destroy-buffer-when-process-dies t + eshell-scroll-to-bottom-on-input t + eshell-history-size 10000 + eshell-save-history-on-exit t eshell-visual-commands '() eshell-banner-message "") ;; From https://karthinks.com/software/jumping-directories-in-eshell/ (defun eshell/j (&optional regexp) "Navigate to a previously visited directory in eshell, or to -any directory proferred by `consult-dir'." +any directory proffered by `consult-dir'." (let ((eshell-dirs (delete-dups (mapcar 'abbreviate-file-name (ring-elements eshell-last-dir-ring))))) @@ -893,7 +896,7 @@ any directory proferred by `consult-dir'." (defun eshell-p10k-prompt-function () "Prompt defining function." - (eshell-p10k-def-prompt '(num-exitcode time dir git))) + (eshell-p10k-def-prompt '(num-exitcode time dir))) (setq eshell-prompt-function #'eshell-p10k-prompt-function eshell-prompt-regexp eshell-p10k-prompt-string))