feat(zsh): replace fnm with standalone pnpm

Install the pnpm native binary from GitHub releases via gh-r and sbin,
matching the existing fnm/starship shim pattern. Node is now managed
by pnpm itself (pnpm runtime), so fnm and its init block are removed.

Drop unzip from the README optional list; only fnm's zip needed it.
This commit is contained in:
tri committed 2026-09-23 15:52:42 +07:00
1 parent 829b0de65e
commit 37f4a0391f
2 files changed
+3 -21

No files matched your search

+3 -17
View File
@@ -39,26 +39,12 @@ zinit for \
lbin'!' \
@ajeetdsouza/zoxide
# pick the correct fnm release asset for this OS/arch
if [[ "$OSTYPE" == darwin* ]]; then
_fnm_asset='fnm-macos.zip'
elif [[ "$(uname -m)" == (aarch64|arm64) ]]; then
_fnm_asset='fnm-arm64.zip'
else
_fnm_asset='fnm-linux.zip'
fi
zinit for \
id-as \
from'gh-r' \
bpick"$_fnm_asset" \
atclone'
./fnm env --use-on-cd --shell zsh > init.zsh; \
./fnm completions --shell zsh > _fnm;
' \
atpull'%atclone' \
blockf \
sbin'fnm' \
@Schniz/fnm
sbin'pnpm' \
@pnpm/pnpm
zinit for \
id-as \