Ana içeriğe atla
Sürüm: Gelecek

Komut satırı oto-tamamlama

Unlike other popular package managers, which usually require plugins, pnpm supports command line tab-completion for Bash, Zsh, Fish, and similar shells.

Oto tamamlama özelliğini kurmak için, şunu çalıştırın:

pnpm install-completion

The CLI will ask for which shell to generate the autocompletion script. Alternatively, the target shell may be specified in the command line:

pnpm install-completion zsh

Tamamlama ile ilgili daha fazla örnek için, bu makaleyi okuyabilirsiniz.

Fig (on macOS only)

You can get IDE-style autocompletions for pnpm with Fig. It works in Bash, Zsh, and Fish.

To install, run:

brew install fig

g-plane/pnpm-shell-completion

pnpm-shell-completion is a shell plugin maintained by Pig Fang on Github.

Features:

  • Provide completion for pnpm --filter <package>.
  • Provide completion for pnpm remove command, even in workspace's packages (by specifying --filter option).
  • Provide completion for scripts in package.json.