zsh-users
 help / color / mirror / code / Atom feed
From: Dominik Vogt <dominik.vogt@gmx.de>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Brace expansion vs. TAB
Date: Sat, 7 Dec 2019 14:33:12 +0100	[thread overview]
Message-ID: <20191207133312.dy7ryy3qfpvwqva4@gmx.de> (raw)
In-Reply-To: <201912071423530510.00BD9FB3@gateway.core.mpy.ch>

On Sat, Dec 07, 2019 at 02:23:53PM +0100, Manuel Presnitz wrote:
> > > *.(hpp|cpp)
> > (...)
> > > or for that matter, *.[hc]pp
> >
> > Nope.  Doesn't match header files wit .h suffix.
>
> You can combine both suggestions to
>
> *.[hc](|pp|xx)
>
> which is a little bit shorter than *.(c|h|cpp|hpp|cxx|hxx)

Okay, but what I'm really missing no are global aliases that match
*parts* of words, so that

  alias -g '*.CH'='*.[ch](|xx|pp)'
  $ grep foo **/*.CH

works.  Or some way to preprocess the command line with a sed
script.

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt

  reply	other threads:[~2019-12-07 13:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-06 17:18 Dominik Vogt
2019-12-07 10:05 ` Mikael Magnusson
2019-12-07 12:32   ` Dominik Vogt
2019-12-07 13:23     ` Re[2]: " Manuel Presnitz
2019-12-07 13:33       ` Dominik Vogt [this message]
2019-12-08  1:23         ` Daniel Shahaf

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=20191207133312.dy7ryy3qfpvwqva4@gmx.de \
    --to=dominik.vogt@gmx.de \
    --cc=zsh-users@zsh.org \
    /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).