From: Zoltan Hidvegi <hzoli@ny.frontiercomm.net>
To: chrisl@cybercom.net
Cc: zsh-users@math.gatech.edu
Subject: Re: Ignoring ~ when expanding scripts
Date: Wed, 21 May 1997 22:59:15 -0400 (EDT) [thread overview]
Message-ID: <199705220259.WAA04907@hzoli.home> (raw)
In-Reply-To: <199705211344.SAA09891@lator.cybercom.net> from Chris Laas at "May 21, 97 06:45:14 pm"
Chris Laas wrote:
> A hack like this:
>
> compctl -C -g '*[^~](*)' + -c
>
> when combined with the "hash -f ; unhash -m '*~'" hack, gives something
> like the desired result, though it incorrectly completes for matching
> executable files in the current directory, even if it is not (and it
> should not be) in your PATH. Anyone know how to fix that?
compctl -C -c -x 'C[0,*/*]' -g '*[^~](*)' + -g '*(*)'
The last *(*) is a fallback. If the typed in prefix does not match
anything without a tilde, then, like fignore, it'll try to complete
allowing tilde.
Zoltan
next prev parent reply other threads:[~1997-05-22 3:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199705211154.OAA10534@glait.Orbotech.Co.IL>
1997-05-21 19:38 ` Zoltan T. Hidvegi
1997-05-21 22:45 ` Chris Laas
1997-05-22 2:59 ` Zoltan Hidvegi [this message]
1997-05-22 4:37 Zoltan Hidvegi
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=199705220259.WAA04907@hzoli.home \
--to=hzoli@ny.frontiercomm.net \
--cc=chrisl@cybercom.net \
--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).