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

Re: completion tricks



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