zsh-users
 help / color / mirror / code / Atom feed
From: Andre Pang <ozone@ihug.com.au>
To: Dominik Vogt <dominik.vogt@gmx.de>
Cc: zsh-users@sunsite.auc.dk
Subject: Re: cd directory completion?
Date: Mon, 23 Aug 1999 23:35:51 +1000	[thread overview]
Message-ID: <19990823233551.B31064@drizzt.ihug.com.au> (raw)
In-Reply-To: <19990823152219.I32224@hp.com>; from Dominik Vogt on Mon, Aug 23, 1999 at 03:22:19PM +0200

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
(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

    Flame away if any of them suck :).


-- 
  __/\___/\_/\____/\____/\    Andre Pang
 /   /__  /   \_    \_  __)
(  :  /  (__:  )  |  |  _)_   ozone@ihug.com.au, andrep@cse.unsw.edu.au
 \___(  ______/|__;__|_____|  http://www.mindflux.com.au/ozone/
      \/ - #ozone             mobile ph#: 0411-882299


  reply	other threads:[~1999-08-23 13:29 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-23 13:22 Dominik Vogt
1999-08-23 13:35 ` Andre Pang [this message]
1999-08-23 14:07   ` Dominik Vogt
1999-08-23 15:03     ` Sweth Chandramouli
1999-08-25 13:46       ` listing all executables matching 'foo' Sven Guckes
1999-08-25 14:22         ` Hubert Canon
1999-08-25 14:53           ` Sven Guckes
1999-08-25 14:59             ` Paul Lew
1999-08-26  3:59         ` James Cribb
1999-08-26 12:27           ` Sven Guckes
1999-08-26 16:24         ` Sweth Chandramouli
1999-08-25  4:32     ` cd directory completion? Bek Oberin
1999-08-23 13:26 Sven Wischnowsky
1999-08-23 14:03 ` Dominik Vogt
1999-08-23 14:09   ` Swen Thuemmler
1999-08-23 13:26 John Riddoch
1999-08-23 14:07 Sven Wischnowsky

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=19990823233551.B31064@drizzt.ihug.com.au \
    --to=ozone@ihug.com.au \
    --cc=dominik.vogt@gmx.de \
    --cc=zsh-users@sunsite.auc.dk \
    /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).