zsh-users
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier+lists/zsh/users/news/@TEQUILA.SYSTEMSZ.CS.YALE.EDU>
To: zsh-users@math.gatech.edu
Subject: Re: Completion on cd
Date: 02 Feb 1998 14:46:15 -0500	[thread overview]
Message-ID: <5lpvl53i48.fsf@tequila.systemsz.cs.yale.edu> (raw)
In-Reply-To: <Pine.OSF.3.96.980202093408.26874L-100000@alpha2.poco.phy.cam.ac.uk>

"Owen M. Astley" <oma1000@cam.ac.uk> 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


  reply	other threads:[~1998-02-02 20:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-30 21:07 Oliver Kiddle
1998-02-01  9:53 ` Andrej Borsenkow
1998-02-02  9:38 ` Owen M. Astley
1998-02-02 19:46   ` Stefan Monnier [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-01-29 11:36 Oliver Kiddle
1998-01-28 13:11 Oliver Kiddle
1998-01-28 15:26 ` Bruce Stephens
1998-01-28 16:25 ` Adam Spiers
1998-01-28  0:58 Steve Talley
1998-01-27 22:45 Wessel Dankers
1998-01-28  0:35 ` Matthew Lovell
1998-01-28  9:31 ` Thomas Koehler
1998-01-28 10:10   ` Andrew Main
1998-01-28 10:50 ` Adam Spiers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5lpvl53i48.fsf@tequila.systemsz.cs.yale.edu \
    --to=monnier+lists/zsh/users/news/@tequila.systemsz.cs.yale.edu \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).