summaryrefslogtreecommitdiff
path: root/.config/bash/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/bash/functions.sh')
-rw-r--r--.config/bash/functions.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/bash/functions.sh b/.config/bash/functions.sh
index 9f04f70..3d587e1 100644
--- a/.config/bash/functions.sh
+++ b/.config/bash/functions.sh
@@ -247,3 +247,8 @@ wscan() {
iw $dev scan | \
sed -e '/^[^\t]/{x;p;x;}' | sed -e '/./{H;$!d;}' -e "x;/$pattern/!d;" | sed "/^$/d"
}
+
+
+cgrep() {
+ find ~/src/qbus/ -type d -name '.git' -exec dirname '{}' \; -exec git --no-pager --git-dir={} --work-tree={}/.. grep --full-name --color=auto "$1" \;
+}