aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/elisp/eshell-additions.el
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2025-09-21 22:25:16 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2025-09-21 22:25:16 +0100
commit35ad876e11e7286f6043146ad1e341374ef9e7f1 (patch)
treec3560406cbd0d94fb17e7c32b2b4da88d1704d2c /Emacs/.config/emacs/elisp/eshell-additions.el
parent54531abe3c7dbab2a5ee22c901186f2de9ba15c4 (diff)
downloaddotfiles-35ad876e11e7286f6043146ad1e341374ef9e7f1.tar.gz
dotfiles-35ad876e11e7286f6043146ad1e341374ef9e7f1.tar.bz2
dotfiles-35ad876e11e7286f6043146ad1e341374ef9e7f1.zip
+eshell/open now uses project eshells first priority!
Diffstat (limited to 'Emacs/.config/emacs/elisp/eshell-additions.el')
-rw-r--r--Emacs/.config/emacs/elisp/eshell-additions.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/Emacs/.config/emacs/elisp/eshell-additions.el b/Emacs/.config/emacs/elisp/eshell-additions.el
index 47674ff..f4c1a4e 100644
--- a/Emacs/.config/emacs/elisp/eshell-additions.el
+++ b/Emacs/.config/emacs/elisp/eshell-additions.el
@@ -104,9 +104,9 @@ If `arg' is non nil, then always prompt user to select an instance."
((null arg)
;; No arg => Choose a default instance
(let* ((candidates (+eshell/--current-instances))
- (default-cand (assoc "*eshell*" candidates #'string=))
- (vacuous-cand (car candidates)))
- (if-let ((cand (or default-cand vacuous-cand)))
+ (project-cand (assoc (project-prefixed-buffer-name "eshell") candidates #'string=))
+ (default-cand (assoc "*eshell*" candidates #'string=)))
+ (if-let ((cand (or project-cand default-cand)))
(switch-to-buffer (cdr cand))
(eshell))))
((= (car arg) 4)