yeah, it is indeed!
i just been thinkering about it, and i just got an idea to try another way to do it, and maybe package for people who aren't familiar with shell commands.
An alias like alias xsearch="grep -rnw -e" would probably replace what you just built and I hope anyone able to install your script could at least figure out how to edit and source their .bashrc file.