From 37f4a0391fa9217479675c54444ae1b441158173 Mon Sep 17 00:00:00 2001 From: Tri Vo Khac Date: Wed, 23 Sep 2026 15:52:42 +0700 Subject: [PATCH] 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. --- README.md | 4 ---- zsh/.config/zsh/.zshrc | 20 +++----------------- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 7143564..a5fc3c4 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,6 @@ - **GNU** `stow` - `zsh` (I mean, duh) -## Optional - -- `unzip` (for `fnm`) - ## Installation 1. clone this repo to your `$HOME` and switch to cloned dir: diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 227fb64..c49d693 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -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 \