Further eshell configuration
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user