-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ackrc
68 lines (53 loc) · 1.75 KB
/
.ackrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Original configuration from :
# https://gist.githubusercontent.com/bracke/6183737/raw/6c3c3f0361c393d989d01ad3a0e4a3cc31cdd5e9/.ackrc
#
# Tutorial at:
# https://www.digitalocean.com/community/tutorials/how-to-install-and-use-ack-a-grep-replacement-for-developers-on-ubuntu-14-04
#
#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
# Ignore case
--ignore-case
# Use "less −r" as my pager
# --pager
# Do not send output through a pager.
--nopager
# Print a break between results from different files.
--break
# Print a filename heading above each file's results.
--heading
# less -r
--ignore-dir=.idea/
--ignore-dir=node_modules/
--ignore-dir=.sass-cache/
--ignore-dir=.tmp/
--ignore-dir=.gist-cache
--ignore-dir=.pygments-cache
--ignore-dir=.sass-cache
--ignore-dir=.themes
--ignore-dir=_deploy
--ignore-dir=public
--ignore-dir=bower_components/
--ignore-dir=dist
#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
--type-set=coffee=.coffee
--type-set=jade=.jade
--type-set=feature=.feature
--type-set=json=.json
--type-add=css=.sass,.scss
--type-set=haml=.haml
--type-add=css=less
--type-set=markdown=.md,.mkd,.markdown