Skip to content

Instantly share code, notes, and snippets.

@cfg
Created January 22, 2013 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfg/4594773 to your computer and use it in GitHub Desktop.
Save cfg/4594773 to your computer and use it in GitHub Desktop.
patch ack 1.96 to ignore *.min.css files by default
--- ack.pl 2013-01-22 08:44:50.810396100 -0500
+++ ack-1.9.6.pl 2012-11-19 16:51:47.066613100 -0500
@@ -1645,7 +1645,6 @@
return if $filename =~ m{^core\.\d+$}o;
return if $filename =~ m{[._].*\.swp$}o;
return if $filename =~ /[.-]min\.js$/;
- return if $filename =~ /[.-]min\.css$/;
return 1;
}
@@ -1854,7 +1853,6 @@
/[._].*\\.swp\$/ - Vi(m) swap files
/core\\.\\d+\$/ - core dumps
/[.-]min\\.js\$/ - Minified javascript files
- /[.-]min\\.css\$/ - Minified css files
Miscellaneous:
--noenv Ignore environment variables and ~/.ackrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment