diff --git a/bin/grep b/bin/grep
index 3611a1594ff475d21e1f6e98e9817c942768bb14..a4f9736b7c5bcd0386ad98e50fa9e0c25d056e24 100755
--- a/bin/grep
+++ b/bin/grep
@@ -1,2 +1,9 @@
 #!/usr/bin/env bash
-grep -rn $1 * --color=always --exclude-dir=docs/hive --exclude-dir=hivemind.egg-info | grep -v __pycache__ --color=auto
+
+if [ -z "$2" ]
+  then
+    grep -rn $1 * --color=always --exclude-dir=docs/hive --exclude-dir=hivemind.egg-info | grep -v __pycache__ --color=auto
+else
+    grep -rn $1 $2 --color=always --exclude-dir=docs/hive --exclude-dir=hivemind.egg-info | grep -v __pycache__ --color=auto
+fi
+