From bf1c9a4d219e9010e596e26c4ac5849e20058ce9 Mon Sep 17 00:00:00 2001 From: pika Date: Wed, 22 May 2024 18:47:15 +0200 Subject: [PATCH] testing.. --- functions/git.fish | 8 ++++++++ 1 file changed, 8 insertions(+) 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