X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=zsh%2F.zshrc;h=7351026a8f65531e6052a7d0f3d82b636cf7ec70;hb=c009782f6bce3f12a626b8de92742a958f60174c;hp=0a18bb0288764271526a46dede629a7c5165c7a0;hpb=e8834bbdd00922405bbedca22c645e07d0c547cf;p=dotfiles.git diff --git a/zsh/.zshrc b/zsh/.zshrc index 0a18bb0..7351026 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -132,16 +132,20 @@ bindkey -s "OR" " git status --short\n" # F3 # }}} # grep {{{ -GREP=/usr/local/bin/grep -GREP_ARGS="--color=always --with-filename --line-number --dereference-recursive" -LESS_COLORED="less --RAW-CONTROL-CHARS" +GREP_ARGS=( + --color=always + --with-filename + --line-number + --dereference-recursive +) +LESS_COLORED=(less --RAW-CONTROL-CHARS) g() { - $GREP ${=GREP_ARGS} $@ | ${=LESS_COLORED} + grep $GREP_ARGS $@ | $LESS_COLORED } GS() { - $GREP ${=GREP_ARGS} $@ | sort --numeric-sort | ${=LESS_COLORED} + grep $GREP_ARGS $@ | sort --numeric-sort | $LESS_COLORED } -alias -g G="| $GREP --color" +alias -g G="| grep --color=always" alias gg="git grep " # }}}