unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Pcompletion for ssh and scp
@ 2007-12-04 22:32 Phil Hagelberg
  2007-12-05  2:10 ` Stefan Monnier
  2007-12-07 18:39 ` Edward O'Connor
  0 siblings, 2 replies; 12+ messages in thread
From: Phil Hagelberg @ 2007-12-04 22:32 UTC (permalink / raw)
  To: emacs-devel

[-- 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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-02-08  5:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).