repo-manager/functions/list.zsh

7 lines
180 B
Bash
Raw Permalink Normal View History

2024-10-08 01:35:43 +00:00
list_repos() {
find "$REPO_BASE_DIR" -type d -name ".git" | while read -r git_dir; do
parent_dir=$(dirname "$git_dir")
echo "${parent_dir##*/}" | sed 's/\./_/g'
done
}