Created
March 23, 2016 09:15
-
-
Save uu59/fc6a72dd11aec1dec3f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#vim:set ft=bash: | |
set -u | |
ghq-grep() { | |
for repo in $(ghq list); do | |
echo $repo: | |
(cd "$(ghq root)/$repo" && PAGER= git grep --full-name "$@") | |
echo | |
done | |
} | |
ghq-grep "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment