cphyc
cphyc

Reputation: 458

Emacs TRAMP per host custom path

I am using TRAMP to work on a remote host that has a very weird PATH. I was wondering whether it was possible to customize the PATH used by TRAMP to find the binary files only for this host? Now, I'm using:

(add-to-list 'tramp-remote-path "/some/weird/path/bin")

but it also applies to any other host without this funky PATH, thus messing up all the other hosts' PATHs.

Upvotes: 0

Views: 560

Answers (1)

Michael Albinus
Michael Albinus

Reputation: 1656

I'm sorry, but this is not possible yet. There is an item on Tramp's todo list for supporting connection-local variables, but this is not implemented yet.

Alternatively, you might set this in the $PATH env variable in your remote .profile. Then you instruct Tramp to use this, by adding tramp-own-remote-path to tramp-remote-path.

Upvotes: 1

Related Questions