changed git.sh

This commit is contained in:
pika 2024-05-23 20:44:41 +02:00
parent 23967cb2c8
commit a388f755eb

View file

@ -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