浏览代码

fix brew call on linux

Tom McKenzie 2 年之前
父节点
当前提交
ada265801e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .zshrc

+ 1 - 1
.zshrc

@@ -28,4 +28,4 @@ if [ -f '/Users/tom/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/tom/google-
 if [ -f '/Users/tom/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/tom/google-cloud-sdk/completion.zsh.inc'; fi
 
 
-eval "$(/opt/homebrew/bin/brew shellenv)"
+if [ -f '/opt/homebrew/bin/brew' ]; then eval "$(/opt/homebrew/bin/brew shellenv)"; fi