diff --git a/functions/git.fish b/functions/git.fish index 4456e5b..810174d 100644 --- a/functions/git.fish +++ b/functions/git.fish @@ -1,20 +1,20 @@ function gsa # ─< Prompt the user to enter the repository URL to add as a submodule >──────────────────── - echo -n "-- enter the repository to add as a submodule --" + echo "-- enter the repository to add as a submodule --" read -l repo # ─< Prompt the user to enter the branch to checkout (e.g., main, master) >───────────────── - echo -n "-- enter the branch to checkout (main/master..) --" + echo "-- enter the branch to checkout (main/master..) --" read -l branch # ─< Prompt the user to enter the relative path where the submodule will be cloned >──────── # ─< Advise not to use the leading / or ./ >──────────────────────────────────────────────── - echo -n "-- enter the relative path, where the submodule will be cloned to. (don't use fist / or ./) --" + echo "-- enter the relative path, where the submodule will be cloned to. (don't use fist / or ./) --" read -l -S path # ─< Ask the user for confirmation if the constructed command looks correct >─────────────── echo "git submodule add --branch $branch --name $path $repo" - echo -n "-- does this command look right to you? [y/n] --" + echo "-- does this command look right to you? [y/n] --" read -l comm # ─< Switch statement to handle the user's confirmation input >─────────────────────────────