Skip to content

Commit

Permalink
feat: Set PNPM_HOME environment variable to global bin dir
Browse files Browse the repository at this point in the history
  • Loading branch information
IgiCodes authored and ntnyq committed Apr 13, 2024
1 parent 12ef6e2 commit bc40468
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pnpm.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ 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)"

export PNPM_HOME="$bindir"
# Add pnpm bin directory to $PATH if it exists and not already in $PATH
[[ $? -eq 0 ]] \
&& [[ -d "$bindir" ]] \
Expand Down

0 comments on commit bc40468

Please sign in to comment.