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

Re: completing second argument of cd



> I don't remember seeing a function like this posted before... it's for
> use with compctl and completes the second argument of cd, i.e. it
> tries to find a possible new directory by altering an occurrence of
> the existing cd argument in $PWD.

Have a look at Misc/compctl-examples and Functions/cdmatch2.  It is in the
zsh distribution since beta17, and it was in my private distribution much
before that.

Cheers,

Zoltan



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