- Notifications
You must be signed in to change notification settings - Fork7
⚙️ oh-my-zsh aliases for common pnpm commands.
License
NotificationsYou must be signed in to change notification settings
ntnyq/omz-plugin-pnpm
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
oh-my-zsh aliases for commonpnpm commands.
- Clone the repository:
git clone --depth=1 https://github.com/ntnyq/omz-plugin-pnpm.git${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/pnpm
- Include it in your
~/.zshrc
:
plugins=(... pnpm)
Add script bellow to your~/.zshrc
zinit light ntnyq/omz-plugin-pnpm
PRs are always welcome!
This feature is copied fromomz-plugin-yarn
Adding pnpm global scripts dir (commonly ~/Library/pnpm) to the$PATH
.
To disable this feature, set the following style in your .zshrc:
zstyle ':omz:plugins:pnpm' global-path no
Alias | Command | Description |
---|---|---|
p | pnpm | The pnpm command |
pex | pnpm exec | Execute a shell command in scope of a project |
pdx | pnpm dlx | Fetch a package without installing, hotload and run it's command |
pa | pnpm add | Install a package in dependencies (package.json ) |
pad | pnpm add --save-dev | Install a package in devDependencies (package.json ) |
prm | pnpm remove | Remove installed packages |
pls | pnpm list | List installed packages |
pap | pnpm add --save-peer | Install a package in peerDependencies (package.json ) |
pga | pnpm add --global | Install packages globally on your operating system |
pgls | pnpm list --global | List global installed packages |
pgrm | pnpm remove --global | Remove global installed packages from your OS |
pgu | pnpm update --global | Upgrade packages installed globally to their latest version |
pi | pnpm init | Interactively creates or updates a package.json file |
pin | pnpm install | Install dependencies defined inpackage.json |
pinf | pnpm install --frozen-lockfile | Install dependencies defined inpackage.json without touching lockfile |
pr | pnpm run | Run a defined package script |
prun | pnpm run | Run a defined package script |
pst | pnpm start | Run the start script defined inpackage.json |
pln | pnpm run lint | Run the lint script defined inpackage.json |
pdocs | pnpm run docs | Run the docs script defined inpackage.json |
pfmt | pnpm run format | Run the format script defined inpackage.json |
pb | pnpm run build | Run the build script defined inpackage.json |
pd | pnpm run dev | Run the dev script defined inpackage.json |
psv | pnpm run serve | Run the serve script defined inpackage.json |
pt | pnpm test | Run the test script defined inpackage.json |
ptc | pnpm test --coverage | Run the test script defined inpackage.json with coverage |
pu | pnpm update | Update packages to their latest version based on the specified range |
pui | pnpm update --interactive | Prompt for which outdated packages to their latest version based on the specified range |
puil | pnpm update --interactive --latest | Prompt for which outdated packages to upgrade to the latest available version |
pc | pnpm create | Create a project from a create-* start kit |
ppub | pnpm publish | Publish a package to the registry |
pab | pnpm approve-builds | Approve dependencies for running scripts during installation |
pf | pnpm -r --filter | Use filter in monorepo root directory |
- New aliases
pab
forpnpm approve-builds
- New aliases
pinf
forpnpm install --frozen-lockfile
- Features
- Set
PNPM_HOME
environment variable to global bin dir
- Set
- New aliases
pui
forpnpm update --interactive
- New aliases
pfmt
forpnpm run format
- Features
- Add pnpm global scripts dir to
$PATH
- Add pnpm global scripts dir to
- New aliases
pr
forpnpm run
- New aliases
pf
forpnpm -r --filter
- Removed aliases
pun
forpnpm uninstall
. Useprm
instead.px
forpnpx
. It's deprecated. Usepex
andpdx
instead.pui
forpnpm update --interactive
. Usepu
andpuil
instead.pdoc
forpnpm run doc
. Maybe rename your scripts todocs
and usepdocs
instead.psv
forpnpm server
.ph
forpnpm help
.pout
forpnpm outdated
.pau
forpnpm audit
.pwhy
forpnpm why
.
- Changed aliases
pup
forpnpm update
has been renamed topu
.ps
forpnpm run serve
has been renamed topsv
. Seeissue #6
- New aliases
pex
forpnpm exec
.pdx
forpnpm dlx
.
About
⚙️ oh-my-zsh aliases for common pnpm commands.