diff --git a/qcd_function b/qcd_function index 1ef7689..be8a84c 100644 --- a/qcd_function +++ b/qcd_function @@ -215,7 +215,10 @@ function igrep () { while true do read -e -i "$args" args echo $@ - grep $args "$@" + grep --color=auto $args "$@" + if [ "$?" -ne 0 ] + then echo _no_matches_ | grep --color=auto ".*" + fi done }