User:Dhylands: Difference between revisions

Jump to navigation Jump to search
m
(Added Tools section with mention of ack)
Line 2: Line 2:


==Tools==
==Tools==
I found a really great search tool called [http://betterthangrep.com/ ack]. It's bascically grep but better. It automatically searched directories and knows about source files (which it looks through), and source repository files (which it ignores).
I found a really great search tool called [http://betterthangrep.com/ ack]. It's bascically grep but better. It automatically searches directories and knows about source files (which it looks through), and source repository files (which it ignores).


I normally install the standalone version
I normally install the standalone version (the command below assume you have a <tt>~/bin</tt> directory)
<pre>curl http://betterthangrep.com/ack-standalone > ~/bin/ack && chmod 0755 !#:3</pre>
<pre>curl http://betterthangrep.com/ack-standalone > ~/bin/ack && chmod 0755 !#:3</pre>
You can use the ACK_OPTIONS environment variable to make ack automatically search idl and ipdl files:
You can use the <tt>ACK_OPTIONS</tt> environment variable to make ack automatically search idl and ipdl files:
<pre>export ACK_OPTIONS="--type-set idl=.idl --type-set ipdl=.ipdl"</pre>
<pre>export ACK_OPTIONS="--type-set idl=.idl --type-set ipdl=.ipdl"</pre>
Confirmed users
69

edits

Navigation menu