added color
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user