help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp and how to source remote environment


From: Michael Albinus
Subject: Re: tramp and how to source remote environment
Date: Tue, 03 Mar 2009 17:36:17 +0100
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/21.3 (hpux)

address@hidden writes:

> Hi Michael,

Hi Rodrigo,

> reading the manual does not seem to help me. Looking into tramp.el the
> problem (my problem) seems to be that tramp does not respect whatever
> my PATH is set to during the login process (in my case
> within .bash_profile).
>
> Perhaps there is in the lisp code of tramp-get-remote-path (used by
> tramp-set-remote-path to actually set the path) something that I'm not
> understanding. Too much lisp there for me.

Tramp has the variable tramp-remote-path. You can add there your
preferred paths, like

(add-to-list 'tramp-remote-path "/my/path" 'append)

> On the other hand, if in tramp-set-remote-path I replace
>
> "PATH=%s; export PATH"
>
> by
>
> "PATH=${PATH}:%s; export PATH"
>
> then things start to work the way I want it! My PATH (crafted within
> my .bash_profile) is now preserved and now I can actually compile.

Maybe the following works (not tested):

(add-to-list 'tramp-remote-path "${PATH}")

> thanks,
>  Rodrigo

Best regards, Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]