Created
July 1, 2013 17:47
-
-
Save ratbeard/5902981 to your computer and use it in GitHub Desktop.
ackrc
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
# This file should be at: ~/.ackrc | |
# | |
# ==== | |
# Tipz | |
# ==== | |
# !!! ACK ONLY SEARCHES FILE TYPES IT KNOWS ABOUT !!! | |
# | |
# To search ALL file types, use: | |
# | |
# ack -a pattern | |
# | |
# To see all the files that will be searched: | |
# | |
# ack -f | |
# | |
# Only search in the given subdirectory as second parameter: | |
# | |
# ack '<div id=' views | |
# ack '<div id=' {views,layouts} | |
# | |
# Match only whole words: | |
# | |
# ack -w utility_nav # doesn't match 'utility_nav_holder' | |
# | |
# ============== | |
# Add File types | |
# ============== | |
# Ruby | |
--type-add=ruby=.rake,.builder | |
--type-add=html=.erb,.haml,.slim | |
--type-set=cucumber=.feature | |
# Dotnet | |
--type-add=html=.cshtml,.aspx | |
--type-add=xml=.csproj | |
# JS | |
--type-set=coffee=.coffee | |
--type-add=js=.js.erb,.jst | |
# CSS | |
--type-add=css=.sass,.less,.scss | |
# Text files | |
--type-set=markdown=.markdown,.md | |
--type-set=asciidoc=.asc | |
# =================== | |
# Additional Settings | |
# =================== | |
# Ignore directories | |
--ignore-dir=vendor | |
--ignore-dir=log | |
--ignore-dir=tmp% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment