zsh: add gst and remove mod.o for cogrep
This commit is contained in:
parent
d3acc704fd
commit
ed183715f3
@ -24,6 +24,7 @@ alias vims='vim --servername vimserver'
|
|||||||
alias vimo='vim --servername vimserver --remote-tab'
|
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 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 beep='mpv /usr/share/sounds/freedesktop/stereo/complete.oga &> /dev/null &' #sound in package sound-theme-freedesktop
|
||||||
|
alias gst="vim '+Gedit:' ."
|
||||||
|
|
||||||
#Extension Alias
|
#Extension Alias
|
||||||
alias -s html=$BROWSER
|
alias -s html=$BROWSER
|
||||||
|
@ -113,7 +113,7 @@ displayExist(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
cogrep () {
|
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 () {
|
jgrep () {
|
||||||
|
Loading…
Reference in New Issue
Block a user