Files
utility_scripts/repos_checker.sh
Andrew ea4a806aea [repos_checker.sh]: Make repository filepaths more readable
Make 'pwd' output bold and prepend a newline
2024-09-28 02:45:19 +01:00

5 lines
280 B
Bash
Executable File

#!/bin/sh
# script to find all the git repositories in the current directory (& sub-directories) and display their git statuses
find . -name ".git" -type d -not -path "./.cache/*" -not -path "./.local/*" -exec sh -c '(cd {}/../; echo -e "\n\033[1m$(pwd)\033[0m"; git status)' \;