Created
December 16, 2016 14:04
-
-
Save itiut/85faf4b3cba864dc489dec23981a32cc to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
ghq list -p | while read dir; do | |
{ | |
cd $dir | |
if git rev-parse --is-inside-work-tree &> /dev/null; then | |
echo "$PWD (git:$(git rev-parse --abbrev-ref HEAD))" | |
else | |
echo $PWD | |
fi | |
} & | |
done | |
wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment