[Top][All Lists]

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

Re: tramp (2.1.15-pre); [Feature Request] Multihop sudo

From: David Abrahams
Subject: Re: tramp (2.1.15-pre); [Feature Request] Multihop sudo
Date: Mon, 20 Apr 2009 09:38:31 -0400

On Apr 12, 2009, at 2:49 PM, Michael Albinus wrote:

David Abrahams <address@hidden> writes:

OK, this is *almost* what I needed. I really want a way to say *don't multihop when it's localhost*, so I can have a fallback rule that uses
`.+' as the pattern for the hostname.  Any chance of that one?

What about

    (add-to-list 'tramp-default-proxies-alist
                 '("\\`localhost\\'" nil nil))

as first rule in `tramp-default-proxies-alist'?

Unfortunately, that won't match because TRAMP seems to use the result of

  $ hostname

as the default. So as a result, I'd need to code up that particular customization so it can happen on a per-machine basis. I can certainly do that, but this seems like a common enough scenario that it should be supported directly through the customize interface. For example, if the first element of the proxy tuple was "" perhaps that would match localhost in whatever form it is expressed?

David Abrahams
BoostPro Computing

reply via email to

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