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

Re: Few newbie questions..



Jukka Lehti wrote:

> Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
> wrote:
> 
> Hi Sven,
> 
> > > > } How I can make zsh3 add slash when doing:
> > > > } cd ..[TAB]? bash does this automatically and
> > > > compctl -g '*(/)' + -x 'S[..]' -k '(..)' -qS/ --
> > cd
> > > 
> > > Hmm, it seems that cd ../..<TAB> doesn't work. I
> > can't
> > > figure out why?
> > 
> > Replace the above with:
> > 
> >   compctl -g "*(-/) .." cd
> 
> Uh, otherwise good but "cd .d<TAB>" does not work (I
> have dir .ddd). My original rule was:
> 
> compctl -g '*(-/)' + -g '*(D-/)' cd
> 
> which is also disturbed after that change. :-o

Make it

  compctl -g '*(-/)' + -g '*(D-/) ..' cd

then.


Bye
  Sven

-- 
Sven Wischnowsky                    wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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