Skip to content

Commit

Permalink
Only reload .zshrc if pnpm not already in PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
toebeann committed Feb 9, 2024
1 parent 4ffb60a commit 526fbfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 526fbfd

Please sign in to comment.