Change back to eshell for remote connections

This commit is contained in:
2025-02-17 21:46:40 -08:00
parent b1d77b0f5d
commit dabf480e7d

View File

@ -1526,6 +1526,7 @@ With PROJECT, give diagnostics for all buffers in the current project."
;; project.el ;; project.el
(use-package project (use-package project
:bind (([remap project-compile] . my/project-compile-or-default) :bind (([remap project-compile] . my/project-compile-or-default)
("C-c v" . my/project-eshell-or-default)
:map project-prefix-map :map project-prefix-map
("s" . my/project-eshell) ("s" . my/project-eshell)
("u" . my/project-run)) ("u" . my/project-run))
@ -2668,16 +2669,15 @@ If no name is given, list all bookmarks instead."
(set-face-attribute 'eshell-starship-icon-face nil (set-face-attribute 'eshell-starship-icon-face nil
:family "FiraCode Nerd Font")) :family "FiraCode Nerd Font"))
(defun my/open-shell-dwim (&optional arg) (defun my/open-eshell-unless-remote (&optional arg)
"Open either an Eshell or eat terminal based on `default-directory'. "Open either an Eshell or eat terminal based on `default-directory'.
If `default-directory' is remote, call `my/project-eat-or-default'. Otherwise, If `default-directory' is remote, call `my/project-eat-or-default'. Otherwise,
call `my/project-eshell-or-default'. ARG is the same as for either of the above call `my/project-eshell-or-default'. ARG is the same as for either of the above
functions (only eshell uses it at the time of writing)." functions (only eshell uses it at the time of writing)."
(interactive "P") (interactive "P")
(if (my/-eshell-really-remote-p) (if (my/-eshell-really-remote-p)
(my/project-eat-or-default) (my/project-eat-or-default arg)
(my/project-eshell-or-default arg))) (my/project-eshell-or-default arg)))
(keymap-global-set "C-c v" #'my/open-shell-dwim)
;; proced ;; proced
(use-package proced (use-package proced