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

Re: cd directory completion?



On Mon, Aug 23, 1999 at 03:26:11PM +0200, wischnow@xxxxxxxxxxxxxxxxxxxxxxx wrote:
> 
> Dominik Vogt wrote:
> 
> > I'd like to have cd complete directory names as well as
> > symlinks that point to directories (zsh-3.0.6). Is there
> > a way to do this without writing a completion function?
> > (And I don't want to fiddle with any 'chase symlink' setting
> > there may be - I like them the way they are).  I couldn't
> > find anything appropriate in the man page. If it's not
> > possible without a function, has anybody written one and 
> > can send it to me?
> 
> The simplest solution: compctl -/ cd

Um, I think that's not the correct syntax, at least not for
3.0.6:

  # compctl -/ cd
  compctl: bad option: -/

I'll settle for

  compctl -n -g '*(-/) .*(-/) cd pushd

instead. Many thanks

Bye

Dominik ^_^

-- 
Dominik Vogt, Hewlett-Packard GmbH, Dept. BVS
Herrenberger Str.130, 71034 Boeblingen, Germany
phone: 07031/14-4596, fax: 07031/14-3883, dominik_vogt@xxxxxx



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