Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion on cd
- X-seq: zsh-users 1307
- From: Stefan Monnier <monnier+lists/zsh/users/news/@TEQUILA.SYSTEMSZ.CS.YALE.EDU>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: Completion on cd
- Date: 02 Feb 1998 14:46:15 -0500
- References: <swordfish.886195210@xxxxxxxxxxxxxxxxxxxxx> <Pine.OSF.3.96.980202093408.26874L-100000@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: monnier@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
"Owen M. Astley" <oma1000@xxxxxxxxx> writes:
> zsh doesn't complete on ./ and ../, you may have to include those
> explicitly with something like
> -g '.*(-/) ./ ../'
Since ./ is only taken into acount once you have typed . and since .. will
always be there, having ./ doesn't really help since you still have to type the
. and the / anyway. So I got rid of this one. Also having '.* ..' as you
suggest is inconvenient when there's only one .xxx subdir since instead of
completing it, zsh asks you whether you want .xxx or ..
So my choice went for:
compctl -g '*(-/)' + -g '.*(-/)' + -g '..' cd chdir dirs pushd
I should probably add some cdpath handling but I don't use it that much anyway.
Stefan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author