Created
February 24, 2018 02:07
-
-
Save jasonwarta/1b315150bcfac89446d8d52056ce6c50 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
#!/bin/bash | |
# run from the root of a directory with multiple projcts to see the status of all of them | |
# requires the git-prompt.sh program be located at the root of your home directory | |
FILES=`find . -maxdepth 1 -type d` | |
BASE=`pwd` | |
. ~/.git-prompt.sh | |
while read line; do | |
DIR="$BASE/$line" | |
cd $DIR && echo "$(sed 's/\.\///' <<< $line)" $(__git_ps1 " (%s)") | |
done <<< $FILES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment