[Top][All Lists]

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

Re: Mention more per-host specification methods

From: Michael Albinus
Subject: Re: Mention more per-host specification methods
Date: Sat, 28 Dec 2019 11:55:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

積丹尼 Dan Jacobson <address@hidden> writes:

> On (info "(tramp) Android shell setup") there is mentioned e.g.,
>           (add-to-list 'tramp-remote-path 'tramp-own-remote-path)
>           (add-to-list 'tramp-remote-path "/system/xbin")
>           (add-to-list 'tramp-remote-process-environment "TMPDIR=$HOME")
>           (add-to-list 'tramp-connection-properties
>                    (list (regexp-quote "android") "remote-shell" "sh"))
> OK, the first three don't mention how to do it "per host". Only the last
> one shows how to do it "per host (android)". Perhaps the rest should
> too. And also show a wildcard example matching all hosts.

See (info "(tramp) Remote programs")

--8<---------------cut here---------------start------------->8---
   Starting with Emacs 26, ‘tramp-remote-path’ can be set per host via
connection-local variables, *Note (emacs)Connection Variables::.  You
could define your own search directories like this:
--8<---------------cut here---------------end--------------->8---

tramp-remote-process-environment is not prepared to be set host

A "wildcard" for a host in tramp-connection-properties is nil instead of
the regexp, as the docstring of this variable tells you. An empty regexp
like "" would serve as well.

Best regards, Michael.

reply via email to

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