Fix Tramp error with eshell integration
* lisp/net/tramp-integration.el (tramp-eshell-directory-change): Respect local `default-directory'. (Bug#57556)
This commit is contained in:
parent
50bb9ec84c
commit
69cc3d38bc
1 changed files with 4 additions and 2 deletions
|
@ -134,8 +134,10 @@ been set up by `rfn-eshadow-setup-minibuffer'."
|
|||
;; Remove last element of `(exec-path)', which is `exec-directory'.
|
||||
;; Use `path-separator' as it does eshell.
|
||||
(setq eshell-path-env
|
||||
(mapconcat
|
||||
#'identity (butlast (tramp-compat-exec-path)) path-separator)))
|
||||
(if (file-remote-p default-directory)
|
||||
(mapconcat
|
||||
#'identity (butlast (tramp-compat-exec-path)) path-separator)
|
||||
(getenv "PATH"))))
|
||||
|
||||
(with-eval-after-load 'esh-util
|
||||
(add-hook 'eshell-mode-hook
|
||||
|
|
Loading…
Add table
Reference in a new issue