tramp-devel
[Top][All Lists]
Advanced

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

Re: tramp (2.2.13.25.1); Need to source ~/.profile to make remote comman


From: Michael Albinus
Subject: Re: tramp (2.2.13.25.1); Need to source ~/.profile to make remote commands work
Date: Tue, 09 Aug 2016 11:58:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Michael Albinus <address@hidden> writes:

Hi Dave and Stéphane,

> A possibility to source ~/.profile would be to set $ENV in
> `tramp-remote-process-environment'. But this doesn't work yet, Tramp
> nukes $ENV to the empty string these days.

I've committed a patch to the Tramp and Emacs repositories, master
branch. The Tramp manual says now:

--8<---------------cut here---------------start------------->8---
   Setting the ‘ENV’ environment variable instructs some shells to read
an initialization file.  Per default, TRAMP has disabled this.  You
could overwrite this behaviour by evaluating

     (let ((process-environment tramp-remote-process-environment))
       (setenv "ENV" "$HOME/.profile")
       (setq tramp-remote-process-environment process-environment))
--8<---------------cut here---------------end--------------->8---

>> Thanks,
>> Dave

Best regards, Michael.



reply via email to

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