From 526fbfd1ec8163cb2fc2cea9d149a146b0b1385e Mon Sep 17 00:00:00 2001 From: Tobey Blaber Date: Fri, 9 Feb 2024 10:01:46 +0000 Subject: [PATCH] Only reload .zshrc if pnpm not already in PATH --- gib.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gib.sh b/gib.sh index 256fd69..c794ff0 100644 --- a/gib.sh +++ b/gib.sh @@ -31,7 +31,10 @@ # ensure pnpm is installed and up-to-date echo "Preparing pnpm..." curl -fsSL https://get.pnpm.io/install.sh | sh - >/dev/null - source ~/.zshrc + + if ! command -v pnpm >/dev/null; then + source ~/.zshrc # only automatically reload .zshrc if pnpm isn't already in the path + fi if ! command -v pnpm >/dev/null; then echo "pnpm command not found in PATH"