all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phil Hagelberg <phil@evri.com>
To: Edward O'Connor <hober0@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Pcompletion for ssh and scp
Date: Fri, 07 Dec 2007 11:09:04 -0800	[thread overview]
Message-ID: <85hciu9van.fsf@evri.com> (raw)
In-Reply-To: <m2r6hybb83.fsf@gmail.com> (Edward O'Connor's message of "Fri, 07 Dec 2007 10:39:40 -0800")

Edward O'Connor <hober0@gmail.com> writes:

> Could you also complete from 'Host' entries in ~/.ssh/config? I have
> lots of shortcut hosts in there like so:

I thought about this, but then I asked myself: is it likely that you'll
have something in your config file that hasn't been added to your
known_hosts file? It seems like this is an edge case that only occurs
when you copy a config file to a fresh machine. Once you've SSHed to
that machine, an entry will get added to known_hosts.

So for this entry:
> | Host andromeda
> | HostName andromeda.dapyr.net
scanning the config file doesn't get you anything. You type andr TAB and
you get the right host, except for the first time before it's been added
to known_hosts.

For this one though; that won't work since the alias for the hostname
doesn't resemble the hostname at all.
> | Host rakim
> | HostName cfhp.org

However, this seems like an edge case. I've never come across a
situation like this, and I don't imagine it's very common. If you want
to write a patch that will allow config file parsing, that'd be great,
but it doesn't really interest me since the value/effort ratio seems
quite low.

-Phil

      reply	other threads:[~2007-12-07 19:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-04 22:32 Pcompletion for ssh and scp Phil Hagelberg
2007-12-05  2:10 ` Stefan Monnier
2007-12-05  6:27   ` Manoj Srivastava
2007-12-05 14:32     ` Stefan Monnier
2007-12-05 20:16   ` Phil Hagelberg
2007-12-06  0:07     ` Glenn Morris
2007-12-06  1:22       ` Phil Hagelberg
2007-12-06  2:22         ` Glenn Morris
2007-12-06 17:46           ` Phil Hagelberg
2008-02-08  5:17             ` Glenn Morris
2007-12-07 18:39 ` Edward O'Connor
2007-12-07 19:09   ` Phil Hagelberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85hciu9van.fsf@evri.com \
    --to=phil@evri.com \
    --cc=emacs-devel@gnu.org \
    --cc=hober0@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.