4 ms·
There's no config file for default options. You probably want to add an alias to your bash/zsh/fishrc: alias ag='ag -s' I tend to favor aliases over confi
by ggreer 10y ago
There's no config file for default options. You probably want to add an alias to your bash/zsh/fishrc:
alias ag='ag -s'
I tend to favor aliases over config files. It reduces complexity and improves startup time. Startup time may not seem like a big deal, but it really matters if you're running something like:
find . -ctime 2 -exec ag blah
(Find all files modified in the past two days and search them for instances of "blah".) If 10,000 files were changed in the past two days, and your search program takes 10 milliseconds to parse a config file, that's an extra 100 seconds wasted.
- Scaevolus 10y agofind can batch arguments using +, much like xargs: find . -ctime 2 -exec ag blah {} + This makes startup latency less important.