emacs: append /run/wrappers/bin to tramp-remote-path

This fixes cd-ing to `/sudo:localhost:` in eshell and executing
commands in that eshell via TRAMP.

Test case:
1. `M-x eshell`
2. `cd /sudo:localhost:`
3. Run any command that's not an eshell builtin
This commit is contained in:
Vika 2023-08-31 20:45:09 +03:00 committed by Lin Jian
parent ba33a55822
commit 51889b299b

View file

@ -68,7 +68,9 @@ least specific (the system profile)"
;; TODO: We should also add the other `NIX_PROFILES' to this path.
;; However, these are user-specific, so we would need to discover
;; them dynamically after connecting via `tramp'
'(add-to-list 'tramp-remote-path "/run/current-system/sw/bin"))
'(progn
(add-to-list 'tramp-remote-path "/run/current-system/sw/bin")
(add-to-list 'tramp-remote-path "/run/wrappers/bin")))
;;; C source directory
;;;