mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 22:34:13 +00:00
parent
2e7db8f855
commit
a40a16ab98
1 changed files with 13 additions and 3 deletions
|
@ -129,13 +129,23 @@ macos() {
|
||||||
# Link the binary
|
# Link the binary
|
||||||
ln -sf "/Applications/$app/Contents/MacOS/cli" "$HOME/.local/bin/zed"
|
ln -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" ]; then
|
||||||
echo "Zed has been installed. Run with 'zed'"
|
echo "Zed has been installed. Run with 'zed'"
|
||||||
else
|
else
|
||||||
echo "To run Zed from your terminal, you must add ~/.local/bin to your PATH"
|
echo "To run Zed from your terminal, you must add ~/.local/bin to your PATH"
|
||||||
echo "Run:"
|
echo "Run:"
|
||||||
|
|
||||||
|
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 " echo 'export PATH=\$HOME/.local/bin:\$PATH' >> ~/.bashrc"
|
||||||
echo " source ~/.bashrc"
|
echo " source ~/.bashrc"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
echo "To run Zed now, '~/.local/bin/zed'"
|
echo "To run Zed now, '~/.local/bin/zed'"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue