commit ac3d3c88dc4f44daaa1ca39c5a1ecfceee845491 parent 7caacfd6d550d656cac3fbd6e3d5e4dd439d6d79 Author: finwo <finwo@pm.me> Date: Wed, 13 Dec 2023 23:47:37 +0100 Better homebrew integration in zsh Diffstat:
| M | zsh/home/.zshrc | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/zsh/home/.zshrc b/zsh/home/.zshrc @@ -28,8 +28,8 @@ if [ -d "/opt/homebrew/opt/openjdk@11/bin" ]; then fi # Homebrew on M1 mac -if [ -d "/opt/homebrew/bin" ]; then - export PATH="/opt/homebrew/bin:$PATH" +if [ -x "/opt/homebrew/bin/brew" ]; then + eval "$(/opt/homebrew/bin/brew shellenv)" fi # }}}