Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: replacing completion



On Wed, May 08, 2002 at 09:00:45 -0500, Andrei Zmievski wrote:
> Hi,
> 
> I'm trying to write a completion command that accomplishes the
> following. When I type 'ssh foo' and hit TAB, I want it to expand to
> 'user@xxxxxxxxxxxxxxxxx'. I am not very skilled in zsh completion
> specifications, so I tried this:

It seems you could also add

Host foo
	User user

to .ssh/config, so the ssh client would take care of that itself.
(Not that I want to prevent you from having fun with hacking on
completion :)

Peter
-- 
Thought is limitation. Free your mind.



Messages sorted by: Reverse Date, Date, Thread, Author