diff --git a/envsetup.sh b/envsetup.sh index a38f20a2ea..ec20bc170f 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -1102,6 +1102,11 @@ function sepgrep() find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -name sepolicy -type d -print0 | xargs -0 grep --color -n -r --exclude-dir=\.git "$@" } +function rcgrep() +{ + find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f -name "*\.rc*" -print0 | xargs -0 grep --color -n "$@" +} + case `uname -s` in Darwin) function mgrep()