diff --git a/functions/git.fish b/functions/git.fish index 477792e..0ba541e 100644 --- a/functions/git.fish +++ b/functions/git.fish @@ -9,15 +9,15 @@ function gsa # ─< 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 - echo -n "-- enter a name for the submodule --" + echo "-- enter a name for the submodule --" read -l -S name # ─< Ask the user for confirmation if the constructed command looks correct >─────────────── echo "git submodule add --branch $branch --name $name $repo $path" - 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 >─────────────────────────────