Added support for directory-level ackrc files

Also updated ackrc
This commit is contained in:
Nick Nisi
2012-08-08 16:30:19 -05:00
parent 4423622a54
commit 79dbfe3a7a
3 changed files with 20 additions and 0 deletions

9
ack/ack.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
# add support for project/directory level .ackrc files
ackrc=""
if [ -f ./.ackrc ]; then
ackrc=$(tr '\n' ' ' < ./.ackrc)
fi
ack $ackrc $*

10
ack/ackrc.symlink Normal file
View File

@@ -0,0 +1,10 @@
# General ack Settings
##########################################################
# only search with case-sensitivity if there is mixed case
--smart-case
# follow symlinks
--follow
# ignore directories
--ignore-dir=node_modules

1
ack/aliases.zsh Normal file
View File

@@ -0,0 +1 @@
alias ack="~/.dotfiles/ack/ack.sh"