From 7bb9716f15628ed60de39d3be2437ee65d5d4f04 Mon Sep 17 00:00:00 2001 From: Daniel Thoren Date: Mon, 24 Oct 2022 19:35:35 +0200 Subject: [PATCH] :bug: fix dont load linuxbrew if not present --- .zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 5cc5239..fdf6de8 100644 --- a/.zshrc +++ b/.zshrc @@ -113,7 +113,9 @@ bindkey -v [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh # make brew accessible -eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" +if [ -d "$HOME/linuxbrew/.linuxbrew" ] ; then + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" +fi # set PATH so it includes user's private ~/.local/bin if it exists # lvim is installed to this directory (at least on ubuntu)