I had incorrectly assumed tramp-own-remote-path would prepend the remote
system's PATH to tramp's exec-path, but it does not, it prepends your
local machine's PATH onto it. tramp-default-remote-path was what I was
looking for and it is already in tramp-remote-path by default.

If tramp can't find a program on the remote it's because either the
remote doesn't support getconf (which tramp uses to scrape the remote
PATH), or your PATH on the remote has been incorrectly configured.
This commit is contained in:
Henrik Lissner 2020-08-03 20:29:41 -04:00
parent 6e702a435a
commit 7638bd3968
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -93,9 +93,7 @@ possible."
(after! tramp
;; Backing up files on remotes can be incredibly slow and prone to a variety
;; of IO errors. Better to disable it altogether in tramp buffers:
(add-to-list 'backup-directory-alist (cons tramp-file-name-regexp nil))
;; Add the remote's PATH to tramp's search path (why isn't this the default?)
(add-to-list 'tramp-remote-path 'tramp-own-remote-path))
(add-to-list 'backup-directory-alist (cons tramp-file-name-regexp nil)))
(add-hook! 'after-save-hook
(defun doom-guess-mode-h ()