zsh-users
 help / color / mirror / code / Atom feed
* replacing completion
@ 2002-05-08 14:00 Andrei Zmievski
  2002-05-08 14:39 ` poeml
  2002-05-08 15:53 ` Bart Schaefer
  0 siblings, 2 replies; 8+ messages in thread
From: Andrei Zmievski @ 2002-05-08 14:00 UTC (permalink / raw)
  To: zsh-users

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@foo.someplace.net'. I am not very skilled in zsh completion
specifications, so I tried this:

compctl -k hosts -x 's[foo]' -k '(user@foo.someplace.net)' -- ssh

But it actually expands to 'foouser@foo.someplace.net' since the
original 'foo' I typed stays. Is there a way around it?

-Andrei
* The best source is the source code. *


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

end of thread, other threads:[~2002-05-14 13:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-08 14:00 replacing completion Andrei Zmievski
2002-05-08 14:39 ` poeml
2002-05-08 14:44   ` Andrei Zmievski
2002-05-08 15:53 ` Bart Schaefer
2002-05-08 16:00   ` Andrei Zmievski
2002-05-08 16:23     ` Bart Schaefer
2002-05-14  7:47       ` Sven Wischnowsky
2002-05-14 13:23         ` Andrei Zmievski

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

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).