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

replacing completion



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:

compctl -k hosts -x 's[foo]' -k '(user@xxxxxxxxxxxxxxxxx)' -- ssh

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

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



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