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

-4
View File
@@ -5,10 +5,6 @@
- **GNU** `stow` - **GNU** `stow`
- `zsh` (I mean, duh) - `zsh` (I mean, duh)
## Optional
- `unzip` (for `fnm`)
## Installation ## Installation
1. clone this repo to your `$HOME` and switch to cloned dir: 1. clone this repo to your `$HOME` and switch to cloned dir:
+3 -17
View File
@@ -39,26 +39,12 @@ zinit for \
lbin'!' \ lbin'!' \
@ajeetdsouza/zoxide @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 \ zinit for \
id-as \ id-as \
from'gh-r' \ from'gh-r' \
bpick"$_fnm_asset" \ sbin'pnpm' \
atclone' @pnpm/pnpm
./fnm env --use-on-cd --shell zsh > init.zsh; \
./fnm completions --shell zsh > _fnm;
' \
atpull'%atclone' \
blockf \
sbin'fnm' \
@Schniz/fnm
zinit for \ zinit for \
id-as \ id-as \