[开发] Oh My Zsh 安装pnpm插件

参考文献

omz-plugin-pnpm

安装pnpm插件

  1. 克隆仓库
git clone --depth=1 https://github.com/ntnyq/omz-plugin-pnpm.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/pnpm
  1. 配置zsh包含 pnpm插件
vim ~/.zshrc

在文件中添加pnpm

plugins=(... pnpm)
  1. 生效配置文件
source ~/.zshrc

pnpm常用简写

AliasCommandDescription
ppnpmThe pnpm command
pexpnpm execExecute a shell command in scope of a project
pdxpnpm dlxFetch a package without installing, hotload and run it’s command
papnpm addInstall a package in dependencies (package.json)
padpnpm add --save-devInstall a package in devDependencies (package.json)
prmpnpm removeRemove installed packages
plspnpm listList installed packages
pappnpm add --save-peerInstall a package in peerDependencies (package.json)
pgapnpm add --globalInstall packages globally on your operating system
pglspnpm list --globalList global installed packages
pgrmpnpm remove --globalRemove global installed packages from your OS
pgupnpm update --globalUpgrade packages installed globally to their latest version
pipnpm initInteractively creates or updates a package.json file
pinpnpm installInstall dependencies defined in package.json
prpnpm runRun a defined package script
prunpnpm runRun a defined package script
pstpnpm startRun the start script defined in package.json
plnpnpm run lintRun the lint script defined in package.json
pdocspnpm run docsRun the docs script defined in package.json
pfmtpnpm run formatRun the format script defined in package.json
pbpnpm run buildRun the build script defined in package.json
pdpnpm run devRun the dev script defined in package.json
psvpnpm run serveRun the serve script defined in package.json
ptpnpm testRun the test script defined in package.json
ptcpnpm test --coverageRun the test script defined in package.json with coverage
pupnpm updateUpdate packages to their latest version based on the specified range
puipnpm update --interactivePrompt for which outdated packages to their latest version based on the specified range
puilpnpm update --interactive --latestPrompt for which outdated packages to upgrade to the latest available version
pcpnpm createCreate a project from a create-* start kit
ppubpnpm publishPublish a package to the registry
pfpnpm -r --filterUse filter in monorepo root directory
  • 26
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值