From cd34439ad10978dbb7bf0b7eb1d35b22115cf698 Mon Sep 17 00:00:00 2001
From: Sylvester Joosten <sjoosten@anl.gov>
Date: Mon, 14 Jun 2021 16:53:49 +0000
Subject: [PATCH] Also export colorized grep

---
 containers/jug/eic-env.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/containers/jug/eic-env.sh b/containers/jug/eic-env.sh
index 3f01e23af..27d2dadc8 100755
--- a/containers/jug/eic-env.sh
+++ b/containers/jug/eic-env.sh
@@ -17,6 +17,9 @@ function ls {
 function less {
   /usr/bin/less -R $@
 }
+function grep {
+  /bin/grep --color=auto $@
+}
 MYSHELL=$(ps -p $$ | awk '{print($4);}' | tail -n1)
 ## only export the functions for bash, as this does not work
 ## in all shells and we only care about bash here. Note that
@@ -25,5 +28,6 @@ MYSHELL=$(ps -p $$ | awk '{print($4);}' | tail -n1)
 if [ "$MYSHELL" == "bash" ]; then
   export -f ls
   export -f less
+  export -f grep
 fi
 unset MYSHELL
-- 
GitLab