> On Jul 28, 2017, at 8:53 AM, Andy Lester <[email protected]> wrote: > >> ack some-text -ri --ignore-dir={node_modules,build} --ignore-file={ext:sql, >> is:app.js} . > > There’s never been anything in ack to allow or disallow that. Those sorts of > expansions are probably done in the shell. > > For example, try this: > > $ echo foo={x,y,z} bar={a,b,c} > foo=x foo=y foo=z bar=a bar=b bar=c > > That’s the shell expanding those, not ack. > > If you’re often doing those sorts of ignores, put them in an .ackrc. > —ignore-dir=node > —ignore-dir=build > —ignore-file=ext:sql > —ignore-file=is:app.js > > You can put them in ~/.ackrc in your home directory, or you can put an .ackrc > at the top of your project directory. The project-level .ackrc gives you > more flexibility. > > As an aside: You don’t need the -r. That’s ack’s default.
I didn’t notice the . at the end. -r . is the default for ack. If you put all those —ignore-dir and —ignore-file and -i in your .ackrc, your command line becomes “ack some-text”, which is the sort of shorthand you normally want. -- You received this message because you are subscribed to the Google Groups "ack users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ack-users. For more options, visit https://groups.google.com/d/optout.
