From 5705a8034de6029b6b313d82d04498e6f3552ef4 Mon Sep 17 00:00:00 2001
From: abs3nt <abs3nt@asdf.cafe>
Date: Wed, 5 Mar 2025 11:10:25 -0800
Subject: [PATCH] fish

---
 functions/_repo_list.fish | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/functions/_repo_list.fish b/functions/_repo_list.fish
index cede54d..82b800a 100644
--- a/functions/_repo_list.fish
+++ b/functions/_repo_list.fish
@@ -1,3 +1,5 @@
 function _repo_list
-    find "$REPO_BASE_DIR" -type d -name ".git" -printf "%h\n" 2>/dev/null | sed 's|.*/||; s/\./_/g'
+    find "$REPO_BASE_DIR" -type d -name ".git" -printf "%h\n" 2>/dev/null | while read -l dir
+        echo (string replace -a '.' '_' (basename "$dir"))
+    end
 end