Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion on cd
- X-seq: zsh-users 1304
- From: "Owen M. Astley" <oma1000@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: Completion on cd
- Date: Mon, 2 Feb 1998 09:38:00 +0000 (GMT)
- In-reply-to: <swordfish.886195210@xxxxxxxxxxxxxxxxxxxxx>
- Sender: oma1000@xxxxxxxxxxxxx (Owen Astley)
On Fri, 30 Jan 1998, Oliver Kiddle wrote:
> On Jan 28, 10:10am, zefram@xxxxxxxxx wrote:
> I was hoping that these -/ options would fix my problems when I upgraded
> to 3.1.2-zefram but that wasn't the case. Using the above compctl for cd
> and the 3.1.2-zefram I still get the problems I previously described. If
> you can't remember, I shall outline it again:
>
> % compctl -/ cd
> % cd
> % cd [tab]
> -- Only my directories not beginning with "." are listed which is fine
> % cd .[tab]
> -- Only my directories beginning with "." are listed which is fine
> % cd .netscape/[tab]
> -- All the *files* and directories in .netscape/ (not starting ".") are
> -- listed! I'd have expected it to complete to "cd .netscape/plugins/"
> -- Also annoying is this behaviour:
> % cd ..[tab]
> -- I get a beep! It should complete to "cd ../" as in tcsh.
I use
compctl -g '*(-/)' + -g '.*(-/)' cd
Which doesn't reproduce the behaviour that you have been describing - it
works fine even when going into the .netscape/ directory.
Another thing:
zsh doesn't complete on ./ and ../, you may have to include those
explicitly with something like
-g '.*(-/) ./ ../'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author