News for hackers. Stuff that matters.
Re:Find is a beautiful tool by shabble on Sunday July 24, 2011 @06:43PM (#2800553)
if you want a dir-specific one, you could specify

    export ACKRC=./.ackrc.local
as an env variable, and then create that file where-ever you need to override default behaviour, otherwise it'll use

~/.ackrc

The downside to doing it this way is that you only get one or the other, you can't (afaik) load ~/.ackrc, and then only override certain aspects of it locally. Also, you're constrained to running it from the basedir of your project. (You might be able to overcome this with a hack based on PROMPT_COMMAND (for bash), or a precmd/preexec function for zsh), which redefines ACKRC appropriately.

Regarding the 'gitability' of it, there's no reason why you can't have a ~/.dotfiles/ackrc, with a symlink to ~ That's how I manage my dotfiles anyway, along with a makefile to create any missing symlinks.

Something like http://kitenet.net/~joey/code/etckeeper/ might work out even better, although I've never really found time to play with it.

There are no comments on this comment yet.