diff --git a/private_dot_profile.tmpl b/private_dot_profile.tmpl index c5b2caa..c5f35b8 100644 --- a/private_dot_profile.tmpl +++ b/private_dot_profile.tmpl @@ -7,6 +7,6 @@ export PATH="$PATH:$HOME/.rvm/bin" {{- if eq .chezmoi.os "linux" }} # Set PATH, MANPATH, etc., for Homebrew. -eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" +[[ -s "/home/linuxbrew/.linuxbrew/bin/brew" ]] && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" {{- end }}