changed git.sh
This commit is contained in:
parent
23967cb2c8
commit
a388f755eb
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue