Further eshell configuration
This commit is contained in:
@@ -832,13 +832,16 @@
|
|||||||
:bind (("M-`" . eshell))
|
:bind (("M-`" . eshell))
|
||||||
:config
|
:config
|
||||||
(setq eshell-destroy-buffer-when-process-dies t
|
(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-visual-commands '()
|
||||||
eshell-banner-message "")
|
eshell-banner-message "")
|
||||||
|
|
||||||
;; From https://karthinks.com/software/jumping-directories-in-eshell/
|
;; From https://karthinks.com/software/jumping-directories-in-eshell/
|
||||||
(defun eshell/j (&optional regexp)
|
(defun eshell/j (&optional regexp)
|
||||||
"Navigate to a previously visited directory in eshell, or to
|
"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
|
(let ((eshell-dirs (delete-dups
|
||||||
(mapcar 'abbreviate-file-name
|
(mapcar 'abbreviate-file-name
|
||||||
(ring-elements eshell-last-dir-ring)))))
|
(ring-elements eshell-last-dir-ring)))))
|
||||||
@@ -893,7 +896,7 @@ any directory proferred by `consult-dir'."
|
|||||||
|
|
||||||
(defun eshell-p10k-prompt-function ()
|
(defun eshell-p10k-prompt-function ()
|
||||||
"Prompt defining 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
|
(setq eshell-prompt-function #'eshell-p10k-prompt-function
|
||||||
eshell-prompt-regexp eshell-p10k-prompt-string))
|
eshell-prompt-regexp eshell-p10k-prompt-string))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user