Skip to content

Instantly share code, notes, and snippets.

@jasonwarta
Created February 24, 2018 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonwarta/1b315150bcfac89446d8d52056ce6c50 to your computer and use it in GitHub Desktop.
Save jasonwarta/1b315150bcfac89446d8d52056ce6c50 to your computer and use it in GitHub Desktop.
#!/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