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

Re: 2 newbie ?s



Yeah, I have something similar, but it won't complete the hostname if you
have something directly before it, like dthiel@xxxxxxxxxxxxxx  If you just
ping bla(tab), it'll work.  That's what I'm trying to figure out.

Thanks,
David

----- Original Message -----
From: "Thomas W. Holt Jr." <twh@xxxxxxxxxxxx>
To: "David Thiel" <dthiel@xxxxxxxxxxxx>
Sent: Wednesday, June 06, 2001 2:24 PM
Subject: Re: 2 newbie ?s


>
> I used to do it with the compctl stuff and the hosts environment variable,
but
> I just upgraded zsh on my main box and dumped all my compctl rules...
>
> still have my hosts varible set in my .zshrc with
>
> # Filename suffixes to ignore during completion
> fignore=(.o .c~ .old .pro .bak)
> # Hosts to use for completion
> hosts=(`hostname` $(cat ~/.hosts))
>
> then I just did a
>
> autoload -U compinit; compinit
>
> Adding that to my .zshrc now
>
> Now I can ping hostname<tab> and it'll finish
>
> I'm not too up to par on the new compinit stuff yet though, it seems to
> work fine so far.
>
>
> David Thiel wrote:
> >
> > Hi all,
> >
> > I'm giving zsh a try after using tcsh for most of my life, and I'm
having a
> > pretty good time with it so far.  2 things - how would I make it so I
could
> > type in ssh dthiel@red (tab) and have it complete to ssh
> > dthiel@xxxxxxxxxxxxxxxxxxxxxxxxx, or if I type in ping deepthought.red
(tab)
> > and have it complete in the same way?  Also, does anyone know how to get
the
> > mailchecking functional with Maildir format mailboxes?
> >
> > Thanks much,
> > David



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