From: Andrei Zmievski <andrei@ispi.net>
To: zsh-users@sunsite.dk
Subject: replacing completion
Date: Wed, 8 May 2002 09:00:45 -0500 [thread overview]
Message-ID: <20020508090045.G13119@ispi.net> (raw)
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. *
next reply other threads:[~2002-05-08 14:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-08 14:00 Andrei Zmievski [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020508090045.G13119@ispi.net \
--to=andrei@ispi.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).