-
-
Save kevinold/4749656 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ack is a tool like grep, designed for programmers with large trees of heterogeneous source code | |
#to install ack, see http://betterthangrep.com/ | |
#to use ack, launch terminal (mac osx) and type 'ack <some_keywords>' | |
#ack will search all files in the current directory & sub-directories | |
#here's how I have my config file setup. this file is located on mac osx here | |
# ~/.ackrc | |
# Always sort the files | |
#--sort−files | |
# Always color, even if piping to a another program | |
--color | |
# Use "less −r" as my pager | |
# --pager | |
# less -r | |
--ignore-dir=.idea/ | |
--ignore-dir=node_modules/ | |
#make sure ack knows how to search common filetypes used in rails projects | |
--type-add=css=scss | |
--type-add=ruby=.haml,.rselm,.feature,.ru,.lock | |
--type-set=coffeescript=.coffee | |
--type-set=coffee=.coffee | |
#make sure ack knows how to search common filetypes used in node.js projects | |
--ignore-dir=node_modules | |
--type-set=coffee=.coffee | |
--type-set=jade=.jade | |
--type-set=feature=.feature | |
--type-set=json=.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@F1LT3R
--sort-files
should work just fine. If you still can't get it working, please submit a ticket here: https://github.com/petdance/ack2