all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phil Hagelberg <phil@evri.com>
To: emacs-devel@gnu.org
Subject: Pcompletion for ssh and scp
Date: Tue, 04 Dec 2007 14:32:47 -0800	[thread overview]
Message-ID: <85d4tmm6pc.fsf@evri.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 707 bytes --]


Hello.

I've added support for hostname completion in eshell when using ssh and
scp. It gathers a list of hostnames from the ~/.ssh/known_hosts file.

SSH completion completes only from the list of hostnames; SCP completes
from files and directories currently present plus the list of
hostnames. It also assumes that each hostname is followed by either a
space or a comma, which is the case on the systems I've checked but may
not be a universal rule.

Would this be suitable for inclusion in Emacs? It may not be portable to
all the systems Emacs supports since it assumes the existence of the
known_hosts file, but I think it's fairly useful nonetheless.

I've attached the file; please comment.

-Phil


[-- Attachment #2: pcomplete support for ssh and scp --]
[-- Type: application/emacs-lisp, Size: 2985 bytes --]

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

             reply	other threads:[~2007-12-04 22:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-04 22:32 Phil Hagelberg [this message]
2007-12-05  2:10 ` Pcompletion for ssh and scp 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

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=85d4tmm6pc.fsf@evri.com \
    --to=phil@evri.com \
    --cc=emacs-devel@gnu.org \
    /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.