Skip to content

Instantly share code, notes, and snippets.

@yeiichi
Last active October 20, 2024 11:48
Show Gist options
  • Save yeiichi/d6334639abcf905572e91bff9deeda76 to your computer and use it in GitHub Desktop.
Save yeiichi/d6334639abcf905572e91bff9deeda76 to your computer and use it in GitHub Desktop.
Display git status of the projects under the CWD.
#!/usr/bin/env zsh
display_help() {
printf "\033[93m*** Display git status of the projects under the CWD. ***\033[0m\n"
}
main() {
display_help
sleep 3
for project in */; do
(cd "$project" &&
printf "\n\033[93m%s\033[0m\n" "$project" &&
git status)
done
}
main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment