Skip to content

Commit

Permalink
Update g to ignore searching in .git and node_modules directories
Browse files Browse the repository at this point in the history
  • Loading branch information
m14t committed Aug 5, 2016
1 parent 35cb44a commit ea7a0bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion g
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@
# in '.svn' folders. #
############################################################

grep -ir --exclude-dir='\.svn' "$@" * 2>/dev/null
grep \
--exclude-dir='\.git' \
--exclude-dir='\.svn' \
--exclude-dir='node_modules' \
-ir \
"$@" * 2>/dev/null

0 comments on commit ea7a0bc

Please sign in to comment.