I'm using ack (the grep replacement) on Windows XP under Strawberry Perl. Where should the .ackrc config file be placed, since ~/.ackrc is not reasonable on Windows?
For windows (MSWin32, anyway), ack looks in the following places and uses the first file found:
$ENV{ACKRC}
$ENV{HOME}/.ackrc
$ENV{HOME}/_ackrc
$ENV{USERPROFILE}/.ackrc
$ENV{USERPROFILE}/_ackrc
All but the first are subject to glob-expansion, so watch out for meta-characters in your environment variables.
When not on windows, HOME and USERPROFILE are replaced by ~ and HOME, respectively.
ack looks for either .ackrc
or _ackrc
under %HOME%
or %USERPROFILE%
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With