fix(zshrc): check for homebrew first

make zsh check if the homebrew directory is present before attempting to
load it.
This commit is contained in:
Robert Morrison 2023-04-01 21:57:33 +01:00
parent a79e9e988f
commit 7ad661267e
Signed by: robert
GPG Key ID: 73E012EB3F4EC696

2
zshrc
View File

@ -57,7 +57,9 @@ fi
## Load external stuff ## Load external stuff
##Configure for homebrew ##Configure for homebrew
if [[ -d "/home/linuxbrew" ]]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
## Configure Plugins ## Configure Plugins
export ZSH_AUTOSUGGEST_STRATEGY=(completion history) # suggest from completion then history export ZSH_AUTOSUGGEST_STRATEGY=(completion history) # suggest from completion then history