From d9429d54011e6eef0f4cb4cda2d90dd06ea7cf8e Mon Sep 17 00:00:00 2001 From: Alec Lomas Date: Mon, 24 Oct 2022 11:11:51 -0700 Subject: [PATCH] :bug: don't hardcode brew location installed in different places depending on platform (e.g. intel vs apple silicon) --- system/.env | 2 +- system/.plugins | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/.env b/system/.env index 501baa1..f241799 100644 --- a/system/.env +++ b/system/.env @@ -19,7 +19,7 @@ export _Z_CMD="j" export NVM_DIR="$HOME/.nvm" # actually load nvm -source /usr/local/opt/nvm/nvm.sh +source "$(brew --prefix)/opt/nvm/nvm.sh" # automatically switch nvm versions (.nvmrc) autoload -U add-zsh-hook diff --git a/system/.plugins b/system/.plugins index 1f069af..669777e 100644 --- a/system/.plugins +++ b/system/.plugins @@ -1,4 +1,4 @@ -source /usr/local/share/antigen/antigen.zsh +source "$(brew --prefix)/share/antigen/antigen.zsh" # oh-my-zsh plugins antigen use oh-my-zsh -- 2.51.2