Last active
October 20, 2024 11:48
-
-
Save yeiichi/d6334639abcf905572e91bff9deeda76 to your computer and use it in GitHub Desktop.
Display git status of the projects under the CWD.
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 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