From 3564f1c2758677575710bd218ffb1591ee70be92 Mon Sep 17 00:00:00 2001
From: abs3nt <abs3nt@asdf.cafe>
Date: Wed, 5 Mar 2025 10:48:32 -0800
Subject: [PATCH] maybe better

---
 functions/_repo_list.fish | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/functions/_repo_list.fish b/functions/_repo_list.fish
index 4514f6e..34ad9d1 100644
--- a/functions/_repo_list.fish
+++ b/functions/_repo_list.fish
@@ -1,6 +1,3 @@
 function _repo_list
-    for git_dir in (find "$REPO_BASE_DIR" -type d -name ".git")
-        set parent_dir (path dirname "$git_dir")
-        echo (path basename "$parent_dir" | string replace -a "." "_")
-    end
+    find "$REPO_BASE_DIR" -type d -name ".git" -printf "%h\n" | sed 's|.*/||; s/\./_/g'
 end