zsh: add gst and remove mod.o for cogrep

This commit is contained in:
Mathieu Maret 2020-08-24 14:05:27 +02:00
parent d3acc704fd
commit ed183715f3
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ alias vims='vim --servername vimserver'
alias vimo='vim --servername vimserver --remote-tab'
alias agrep='grep --exclude=.git --exclude-dir=out --exclude-dir=prebuilts --exclude-dir=docs --exclude=tags --exclude=cscope.out'
alias beep='mpv /usr/share/sounds/freedesktop/stereo/complete.oga &> /dev/null &' #sound in package sound-theme-freedesktop
alias gst="vim '+Gedit:' ."
#Extension Alias
alias -s html=$BROWSER

View File

@ -113,7 +113,7 @@ displayExist(){
}
cogrep () {
find . -name .repo -prune -o -name .git -prune -o -type f \( -name '*.o' \) -print0 | sed 's/.o\x0/.c\x0/g'| displayExist | xargs -0 grep --color -n "$@"
find . -name .repo -prune -o -name .git -prune -o -type f \( -name '*.o' ! -name '*.mod.o' \) -print0 | sed 's/.o\x0/.c\x0/g'| displayExist | xargs -0 grep --color -n "$@"
}
jgrep () {