tramp-devel
[Top][All Lists]
Advanced

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

Re: Problem with tramp and magit


From: Michael Albinus
Subject: Re: Problem with tramp and magit
Date: Fri, 22 Jun 2018 19:50:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Stephan Lindner <address@hidden> writes:

> Hi Michael,

Hi Stephan,

[pls keep the Cc, for the archives]

> I searched a bit around and included the following in .profile in my
> remote home directory:
>
>   | PATH=/home/users/lindners/bin:$PATH
>   | export PATH
>
> I also added the following to my init.el:
>
>   | (add-to-list 'tramp-remote-path "/home/users/lindners/bin")
>   | (add-to-list 'tramp-remote-path 'tramp-own-remote-path)
>
>
> Still, M-! "which git" gives me "/usr/bin/git", which is not the path,
> and thereby version, that I want.
>
> So the question is: What do I need to do such that executing M-! in a
> remote buffer yields
> "/home/users/lindners/bin/git" or "~/bin/git"?

Tramp caches connection properties. After changing `tramp-remote-path',
you must instruct Tramp to recompute them. Call "M-x
tramp-cleanup-this-connection", assuming your current buffer is a remote one.

> Thanks again!
>
> Best,
>
>         Stephan

Best regards, Michael.



reply via email to

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