diff --git a/files/dotfiles/shellconfig/workspaces/add_workspace.sh b/files/dotfiles/shellconfig/workspaces/add_workspace.sh index 72c0e69..ba70098 100755 --- a/files/dotfiles/shellconfig/workspaces/add_workspace.sh +++ b/files/dotfiles/shellconfig/workspaces/add_workspace.sh @@ -14,6 +14,19 @@ if [ -z "$NAME" ]; then exit 1 fi +# Check if workspace already exists +if [ $(cat $JSON_PATH | jq 'keys' | grep "${NAME}") ]; then + OVERRIDE=$(cat <