ohmyzsh/plugins/dot-env/os/SunOS/functions.sh
Chris Blackburn ae2db75f3e Added dot-env plugin
Dot-env is a cross-platform, cascading Zsh environment system for those who work on different hardware and OS environments.

See: https://github.com/midwire/.env
2012-01-21 19:12:38 -06:00

13 lines
206 B
Bash

function rgrep {
if [[ $# -lt 1 ]]; then
echo "Usage: rgrep PATTERN [PATH]"
return
fi
pattern="$1"
if [[ -z "$2" ]]; then
path=`pwd`
else
path="$2"
fi
find -L "$path"|xargs grep "$pattern"
}