added color
This commit is contained in:
@@ -215,7 +215,10 @@ function igrep () {
|
|||||||
while true
|
while true
|
||||||
do read -e -i "$args" args
|
do read -e -i "$args" args
|
||||||
echo $@
|
echo $@
|
||||||
grep $args "$@"
|
grep --color=auto $args "$@"
|
||||||
|
if [ "$?" -ne 0 ]
|
||||||
|
then echo _no_matches_ | grep --color=auto ".*"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user