I wrote a zsh function to help me do some grepping at my job. 

```
   function rgrep (){ 
if [ -n "$1" ] && [ -n "$2" ]
then
    exec grep -rnw $1 -r $2
elif [ -n "$1" ]
then
    exec grep -rnw $1 -r "./"
else
    echo "please enter one or two args"
fi  
}

```

Works great, however, grep finishes executing I don't get thrown back into the shell. it just hangs at [process complete] any ideas? 
I have the function in my .zshrc