# }}}
# grep {{{
-GREP=/usr/local/bin/grep
-GREP_ARGS="--color=always --with-filename --line-number --dereference-recursive"
-LESS_COLORED="less --RAW-CONTROL-CHARS"
+GREP_ARGS=(
+ --colour=always
+ --with-filename
+ --line-number
+ --dereference-recursive
+)
+LESS_COLOURED=(less --RAW-CONTROL-CHARS)
g() {
- $GREP ${=GREP_ARGS} $@ | ${=LESS_COLORED}
+ grep $GREP_ARGS $@ | $LESS_COLOURED
}
GS() {
- $GREP ${=GREP_ARGS} $@ | sort --numeric-sort | ${=LESS_COLORED}
+ grep $GREP_ARGS $@ | sort --numeric-sort | $LESS_COLOURED
}
-alias -g G="| $GREP --color"
+alias -g G="| grep --colour=always"
alias gg="git grep "
# }}}