From ed183715f3cf0c131103ffc35c2b7d137cfea5d4 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Mon, 24 Aug 2020 14:05:27 +0200 Subject: [PATCH] zsh: add gst and remove mod.o for cogrep --- .zsh/30_alias.zsh | 1 + .zsh/40_function.zsh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.zsh/30_alias.zsh b/.zsh/30_alias.zsh index 12d30c7..76a1428 100644 --- a/.zsh/30_alias.zsh +++ b/.zsh/30_alias.zsh @@ -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 diff --git a/.zsh/40_function.zsh b/.zsh/40_function.zsh index 705a91c..1b7f6ec 100755 --- a/.zsh/40_function.zsh +++ b/.zsh/40_function.zsh @@ -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 () {