X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;ds=sidebyside;f=zsh%2F.zshrc;h=be99ef3acd451f3221140daa545a31b941697967;hb=a65915c3bf698bdc7a8ec7d103b9de0e5f028707;hp=7dcc18fe8189b791185246b0d6902116be750023;hpb=40a03604c262512ef6ff7ac7c061b9168112ba72;p=dotfiles.git diff --git a/zsh/.zshrc b/zsh/.zshrc index 7dcc18f..be99ef3 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -110,7 +110,9 @@ bindkey -s "OR" " git status --short\n" # F3 # grep {{{ GREP=/usr/local/bin/grep g() { - $GREP --color=always --with-filename --line-number --recursive $@ | less --RAW-CONTROL-CHARS + $GREP --color=always --with-filename --line-number --recursive $@ | + sort --numeric-sort | + less --RAW-CONTROL-CHARS } alias -g G="| $GREP --color" alias grep="$GREP"