Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion tricks
- X-seq: zsh-users 3693
- From: Matt Armstrong <matt.armstrong@xxxxxxxxxxxx>
- To: Adam Spiers <adam@xxxxxxxxxx>
- Subject: Re: completion tricks
- Date: 19 Mar 2001 13:46:38 -0800
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20010319213006.B21595@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Pine.LNX.4.31.0103191314040.4850-100000@neptune> <20010319141533.D94071@xxxxxxxxxx> <20010319213006.B21595@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: matt.armstrong@xxxxxxxxxxxx
Adam Spiers <adam@xxxxxxxxxx> writes:
> Marius Strom (marius@xxxxxxxxxx) wrote:
> > On Mon, Mar 19, 2001 at 01:14:54PM -0700, Jeff Shipman wrote:
> > > I was wondering how to set up some completion tricks like
> > > these:
> > >
> > > 1) Using 'man' will complete different man pages
> > >
> > > 2) Using ssh, rlogin, telnet, etc will complete
> > > different hosts on my network.
> >
> > Jeff,
> > I did the second portion as thus in my .zshrc:
> >
> > hosts=( host1 host2 host3.fqdn.com )
> > compctl -k hosts ssh ftp telnet ping traceroute mtr rlogin rsh
>
> Or if you're using a development version (highly recommended), forget
> compctl altogether, and do `autoload compinstall; compinstall' to
> install the new completion system, which is much better.
I was using the new completion stuff for a while, but I switched back
for two reasons:
- The learning curve to actually do stuff with the new completion
stuff was above my personal threshold.
- My shells started up many times slower with it in place.
compctl is cryptic but pretty simple. I hope it stays around.
--
matt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author