projects
/
dotfiles.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40a0360
)
Sort filenames after grep
author
Sergey Matveev <stargrave@stargrave.org>
Thu, 19 Dec 2019 12:00:38 +0000 (15:00 +0300)
committer
Sergey Matveev <stargrave@stargrave.org>
Thu, 19 Dec 2019 12:00:38 +0000 (15:00 +0300)
zsh/.zshrc
patch
|
blob
|
history
diff --git
a/zsh/.zshrc
b/zsh/.zshrc
index 7dcc18fe8189b791185246b0d6902116be750023..be99ef3acd451f3221140daa545a31b941697967 100644
(file)
--- a/
zsh/.zshrc
+++ b/
zsh/.zshrc
@@
-110,7
+110,9
@@
bindkey -s "
\e
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"