From 8667f8615da479a8e9c4e8d5bb5987632d75bfaf Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 5 Dec 2025 21:43:18 -0800 Subject: Add ssh server --- list | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 list (limited to 'list') diff --git a/list b/list new file mode 100644 index 0000000..43cc82b --- /dev/null +++ b/list @@ -0,0 +1,28 @@ +#!/bin/sh +# List all git repositories + +echo "Available repositories:" +echo "" + +cd "$HOME" || exit 1 + +# Count only .git repositories +repo_count=$(find . -maxdepth 1 -type d -name "*.git" | wc -l) + +if [ "$repo_count" -eq 0 ]; then + echo " (no repositories yet)" + echo "" + echo "Create one with: init-repo " +else + for repo in *.git; do + if [ -d "$repo" ]; then + echo " $repo" + if [ -f "$repo/description" ]; then + desc=$(cat "$repo/description") + if [ "$desc" != "Unnamed repository; edit this file 'description' to name the repository." ]; then + echo " → $desc" + fi + fi + fi + done +fi -- cgit v1.2.3-70-g09d2