From 7ad661267e3a634ea2926824a8afcbfb950c70b0 Mon Sep 17 00:00:00 2001 From: Robert Morrison Date: Sat, 1 Apr 2023 21:57:33 +0100 Subject: [PATCH] fix(zshrc): check for homebrew first make zsh check if the homebrew directory is present before attempting to load it. --- zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 21b4426..ecdb2a3 100644 --- a/zshrc +++ b/zshrc @@ -57,7 +57,9 @@ fi ## Load external stuff ##Configure for homebrew -eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" +if [[ -d "/home/linuxbrew" ]]; then + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" +fi ## Configure Plugins export ZSH_AUTOSUGGEST_STRATEGY=(completion history) # suggest from completion then history