Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Ignoring ~ when expanding scripts
- X-seq: zsh-users 865
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxxxxxxxxxxx>
- To: chrisl@xxxxxxxxxxxx
- Subject: Re: Ignoring ~ when expanding scripts
- Date: Wed, 21 May 1997 22:59:15 -0400 (EDT)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <199705211344.SAA09891@xxxxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author