greplike () {
declare grep=$1; shift
if [ -t 1 ]; then
- command $grep ${GREP_COLORS+--color=auto} "$@"
+ command $grep ${GREP_COLORS+--color=always} "$@" | mdw-pager
else
command $grep "$@"
fi
alias grep="greplike grep"
alias egrep="greplike egrep"
alias fgrep="greplike fgrep"
+alias zgrep="greplike fgrep"
# --- Set up some simple aliases ---