Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cd directory completion?
- X-seq: zsh-users 2500
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: ozone@xxxxxxxxxxx, zsh-users@xxxxxxxxxxxxxx
- Subject: Re: cd directory completion?
- Date: Mon, 23 Aug 1999 16:07:16 +0200
- In-reply-to: <19990823233551.B31064@xxxxxxxxxxxxxxxxxx>; from ozone@xxxxxxxxxxx on Mon, Aug 23, 1999 at 11:35:51PM +1000
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990823152219.I32224@xxxxxx> <19990823233551.B31064@xxxxxxxxxxxxxxxxxx>
On Mon, Aug 23, 1999 at 11:35:51PM +1000, ozone@xxxxxxxxxxx wrote:
> On Mon, Aug 23, 1999 at 03:22:19PM +0200, 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?
>
> I dunno if this is any 'good' (from a technical zsh perspective), but
> here's mine for 3.1.5. May (not) work on 3.0.6. Also have provided other
^^^^^
*does* work on 3.0.6.
> (really) simple ones which I've used.
>
> compctl -g '*(-/) .*(-/)' cd # what you want
> compctl -g '*(/) .*(/)' rmdir
> compctl -j -P % kill
> compctl -j -P % fg
> compctl -j -P % bg
> compctl -u w
> compctl -m whence
> compctl -c which
> compctl -c man
> compctl -u who
Looks pretty much like the stuff I use. In the end all compctl
configs end up the same :-) But I wonder why you use whence
and where at all (do you?). It's so much easier to just type
# ls =filename
and hit TAB :-))
I'm especially fond of my man page completion.
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