Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
zsh instructions too (#13944)
Conrad Irwina40a16ab98cc
diff --git a/script/install.sh b/script/install.shindex 376e88d7717..4141ae49a02 100755--- a/script/install.sh+++ b/script/install.sh@@ -129,13 +129,23 @@ macos() {# Link the binaryln -sf "/Applications/$app/Contents/MacOS/cli" "$HOME/.local/bin/zed"- if which "zed" >/dev/null 2>&1; then+ if [ "$(which "zed")" = "$HOME/.local/bin/zed" ]; thenecho "Zed has been installed. Run with 'zed'"elseecho "To run Zed from your terminal, you must add ~/.local/bin to your PATH"echo "Run:"- echo " echo 'export PATH=\$HOME/.local/bin:\$PATH' >> ~/.bashrc"- echo " source ~/.bashrc"++ case "$SHELL" in+ *zsh)+ echo " echo 'export PATH=\$HOME/.local/bin:\$PATH' >> ~/.zshrc"+ echo " source ~/.zshrc"+ ;;+ *)+ echo " echo 'export PATH=\$HOME/.local/bin:\$PATH' >> ~/.bashrc"+ echo " source ~/.bashrc"+ ;;+ esac+echo "To run Zed now, '~/.local/bin/zed'"fi}