mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
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
13 lines
206 B
Bash
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"
|
|
}
|