Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Install jq if it's missing
Petros Amoiridisdcc804783cbb
diff --git a/script/start-local-collaboration b/script/start-local-collaborationindex 03736627156..7a94982a5a6 100755--- a/script/start-local-collaboration+++ b/script/start-local-collaboration@@ -17,6 +17,12 @@ MESSAGEexit 1fi+# Install jq if it's not installed+if ! command -v jq &> /dev/null; then+ echo "Installing jq..."+ brew install jq+fi+# Start one Zed instance as the current user and a second instance with a different user.username_1=$(curl -sH "Authorization: bearer $GITHUB_TOKEN" https://api.github.com/user | jq -r .login)username_2=nathansobo@@ -25,7 +31,6 @@ if [[ $username_1 == $username_2 ]]; thenfi# Make each Zed instance take up half of the screen.-output=$(system_profiler SPDisplaysDataType -json)resolution=$(echo "$output" | jq -r '.SPDisplaysDataType[0].spdisplays_ndrvs[] | select(.spdisplays_online == "spdisplays_yes") | ._spdisplays_resolution')width=$(echo "$resolution" | jq -Rr 'split(" x ")[0]')