Skip to content

Instantly share code, notes, and snippets.

@dmcnulla
Last active February 26, 2021 17:51
Show Gist options
  • Save dmcnulla/6d605fdc3d0f7bc701a3e137cc3f2902 to your computer and use it in GitHub Desktop.
Save dmcnulla/6d605fdc3d0f7bc701a3e137cc3f2902 to your computer and use it in GitHub Desktop.
My ack-grep search helper file.
# only search with case sensitivity if there is mixed case
--smart-case
# Sort the files
--sort-files
--type-set=web=.css,.htm,.html,.php,.phtml,.js
--type-set=py=.py
--type-set=ruby=.rb,.rhtml,.rjs,.rxml,.erb,.rake,Rakefile
--type-set=steps=steps.rb,steps.java
--type-set=feature=.feature
# only search with case sensitivity if there is mixed case
--smart-case
# Sort the files
--sort-files
# types of files
--type-set=jmeter=.jmx
--type-set=steps=steps.rb,steps.java
--type-set=feature=.feature
--type-set=features=.feature
--type-set=sql=.sql,.bteq,.btq
--type-set=jenkins=.jenkinsfile,.jenkinsfile_script
--type-set=shell=.sh,.zsh,.bash
--type-set=text=.txt,.log,.yaml,.yml
--type-set=txt=.txt,.log,.yaml,.yml
--type-set=docker=Dockerfile*,docker-compose*
--type-set=config=.cfg,.conf,.config,.ini
# ignore these directories
--ignore-dir=.eggs
--ignore-dir=.git
--ignore-dir=.idea
--ignore-dir=.cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment