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