zsh-users
 help / color / mirror / code / Atom feed
From: Matthew Lovell <lovell@fc.hp.com>
To: "Stephen Riehm" <sr@pc-plus.de>
Cc: zsh-users@math.gatech.edu
Subject: Re: zsh - new user with questions
Date: Tue, 18 Aug 1998 10:17:57 -0600 (MDT)	[thread overview]
Message-ID: <13785.43317.123914.551024@hatchet.fc.hp.com> (raw)
In-Reply-To: <C1256664.00540607.00@bavaria3.pc-plus.de>

On 18 August 1998, Stephen Riehm writes:
 > 
 >      occaisonally I want to perform completions which are normally
 > disallowed by compctl. The simplest example is
 > 
 >      cd. "compctl -g '*(-/)' cd" will complete nicely, unless I want to cd
 > into a hidden (dot) directory. Then it doesn't
 > 
 >      complete at all. Is it possible to say that it should complete
 > non-hidden directories, unless the text typed indicates
 > 
 >      otherwise, ie: if I type "cd <tab>", I get a list of all the normal
 > directories, but if I then type .<tab> it should use the
 > 
 >      . and show me all the directories beginning with .


The following works nicely for me, with the behavior you desired:

# cd/pushd/rmdir only directories or symbolic links to directories.  If 
# none of those match, resort to shell variables
compctl -g '*(-/)' + -g '.*(-/)' -v cd pushd rmdir   

-- 

Matthew Lovell                       voice: (970) 898-6264 
Hewlett-Packard FSL                    fax: (970) 898-2510 
3404 E. Harmony Rd. MS A0         location: 3UR4
Fort Collins, CO 80528-9599         mailto:lovell@fc.hp.com


  reply	other threads:[~1998-08-18 16:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-18 15:33 Stephen Riehm
1998-08-18 16:17 ` Matthew Lovell [this message]
1998-08-18 16:28 ` Peter Stephenson
1998-08-18 22:46   ` David Hedbor
1998-08-19  1:21     ` Bart Schaefer
1998-08-18 16:43 ` Zefram
1998-08-19 12:34 Stephen Riehm
1998-08-19 13:53 ` Goran Larsson
1998-08-19 16:03 ` Bart Schaefer
1998-08-19 15:09 Stephen Riehm
1998-08-19 17:35 ` Goran Larsson
1998-08-19 19:18   ` Bart Schaefer
1998-08-19 19:58     ` Roland Jesse
1998-08-20  9:47       ` Andrej Borsenkow
1998-08-20 11:27 Stephen Riehm

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=13785.43317.123914.551024@hatchet.fc.hp.com \
    --to=lovell@fc.hp.com \
    --cc=sr@pc-plus.de \
    --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).