brew install the_silver_searcher
ag stringtofind ~/code
I know what you’re thinking, what is
ag? Well, Ag is the chemical symbol for silver, and it’s a lot easier to type than
the_silver_server, so Geoff went with it! There are a number of features that make The Silver Searcher worth giving a try:
- Speed: 3-5x faster than ack
- It honors .gitignore, .hgignore, and .agignore
agis 33% shorter than
ack(admittedly this is silly, but you can’t argue the facts!)
Have comments? Send a tweet to @TheChangelog on Twitter.
Subscribe to The Changelog Weekly – our weekly email covering everything that hits our open source radar.