From 8c2e840eff0afb067d2f81a8cd4cd267e624f015 Mon Sep 17 00:00:00 2001 From: ntnyq Date: Sat, 13 Apr 2024 14:19:31 +0800 Subject: [PATCH] chore: add comments for new feature --- pnpm.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pnpm.plugin.zsh b/pnpm.plugin.zsh index e750b31..4c3ae78 100644 --- a/pnpm.plugin.zsh +++ b/pnpm.plugin.zsh @@ -2,7 +2,9 @@ if zstyle -T ':omz:plugins:pnpm' global-path; then # Skip pnpm call if default global bin dir exists [[ -d "$HOME/Library/pnpm" ]] && bindir="$HOME/Library/pnpm" || bindir="$(pnpm -g bin 2>/dev/null)" + # Set `PNPM_HOME` environment variable to global bin dir, see #14 export PNPM_HOME="$bindir" + # Add pnpm bin directory to $PATH if it exists and not already in $PATH [[ $? -eq 0 ]] \ && [[ -d "$bindir" ]] \