]>
Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - bin/ack-wrapper
   2 # Wrapper around 'ack' to crawl all directories from $PWD to / (or $HOME) 
   3 # looking for a "local" .ackrc file. Useful for setting project-level 
   4 # --ignore-dir settings. 
  12 while [ "$dir" != "/" -a "$match" = "" ]; do 
  13     if [ -e "$dir/.ackrc" ]; then 
  14         if [ "$dir" != "$HOME" ]; then 
  16             echo "(Include: ${dir}/.ackrc)" 
  17             ACKARGS
="$(egrep "^[^#]" "${dir}/.ackrc" | xargs) $ACKARGS" 
  26 command ack 
$ACKARGS $
*