Skip to content

Instantly share code, notes, and snippets.

@tancnle
Created January 31, 2014 11:52
Show Gist options
  • Save tancnle/8730700 to your computer and use it in GitHub Desktop.
Save tancnle/8730700 to your computer and use it in GitHub Desktop.
Setup ack on MacOSX
$ brew install ack
$ ack --version

Create ~/.ackrc (Below is my ackrc example, modify as you see fit)

# Options
--smart-case
--sort-files

# Exclusions
--ignore-file=is:tags
--ignore-dir=is:log
--ignore-dir=is:vendor
--ignore-dir=is:coverage
--ignore-dir=is:target
--ignore-dir=is:build

And go wild

$ ack --help-types
$ ack <string_to_find> --type ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment