diff --git a/init/setup.fish b/init/setup.fish index 0b7b071..1375357 100644 --- a/init/setup.fish +++ b/init/setup.fish @@ -118,20 +118,20 @@ function gsa echo "-- enter the repository to add as a submodule --" read repo - # ─< Prompt the user to enter the branch to checkout (e.g., main, master) >───────────────── - echo "-- enter the branch to checkout (main/master..) --" - read branch - # ─< Prompt the user to enter the relative path where the submodule will be cloned >──────── # ─< Advise not to use the leading / or ./ >──────────────────────────────────────────────── echo "-- enter the relative path, where the submodule will be cloned to. (!! do it like this: ./path/to/clone/to) --" read -S path + # ─< Prompt the user to enter the branch to checkout (e.g., main, master) >───────────────── + echo "-- enter the branch to checkout (main/master..) --" + read branch + echo "-- enter a name for the submodule --" read -l name # ─< Ask the user for confirmation if the constructed command looks correct >─────────────── - echo "git submodule add --branch $branch $repo $path" + echo "git submodule add --branch $branch --name $name $repo $path" echo "-- does this command look right to you? [y/n] --" read -l comm