Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
replacing completion
- X-seq: zsh-users 4942
- From: Andrei Zmievski <andrei@xxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: replacing completion
- Date: Wed, 8 May 2002 09:00:45 -0500
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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