From a388f755eb4dac993947c82335e6956579d39f5d Mon Sep 17 00:00:00 2001 From: pika Date: Thu, 23 May 2024 20:44:41 +0200 Subject: [PATCH] changed git.sh --- functions/git.fish | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/functions/git.fish b/functions/git.fish index 6f365da..6b4d1f5 100644 --- a/functions/git.fish +++ b/functions/git.fish @@ -1,7 +1,15 @@ # ╭────────────────────────────────────────────────────────────────────────────────────────────╮ # │ Define function gsa (to ask the user which submodule to clone to which path and which name │ # ╰────────────────────────────────────────────────────────────────────────────────────────────╯ + +set dir $PWD + function gsa + echo "-- these are the current submodules --" + if command -v rg >/dev/null 2>&1 + rg -i submodule (echo $dir/.gitmodules) + end + # ─< Prompt the user to enter the repository URL to add as a submodule >──────────────────── echo "-- enter the repository to add as a submodule --" read repo