From cbe5e8442f0097ae92919b06f0b53c5dbc93650e Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sun, 23 Jan 2022 12:28:42 +0200 Subject: [PATCH] add_workspace now checks if there is a WS for pwd and asks if to override --- .../shellconfig/workspaces/add_workspace.sh | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/files/dotfiles/shellconfig/workspaces/add_workspace.sh b/files/dotfiles/shellconfig/workspaces/add_workspace.sh index ba70098..e6d937b 100755 --- a/files/dotfiles/shellconfig/workspaces/add_workspace.sh +++ b/files/dotfiles/shellconfig/workspaces/add_workspace.sh @@ -2,9 +2,32 @@ JSON_PATH=~/.shellconfig/workspaces/workspaces.json +function yes_no_question() { + QUESTION=$1 + RESPONSE=$(cat <