diff --git a/functions/git.fish b/functions/git.fish index 955669e..14952e5 100644 --- a/functions/git.fish +++ b/functions/git.fish @@ -5,5 +5,13 @@ function gsa read branch echo "-- enter the relative path, where the submodule will be cloned to. (don't use fist / or ./) --" read -S path + echo "-- does this command look right to you? [y/n] --" echo "git submodule add --branch $branch --name $path $repo" +read comm + switch $comm + case [Yy] + git submodule add --branch $branch --name $path $repo + case [Nn] + echo "-- all right, just try again :) --" + end end