From 55457187d18221e76bd12f0fb2cfab65c49b92fb Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 5 Mar 2019 01:09:01 +0100 Subject: Initial commit --- .oh-my-zsh/plugins/npx/README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .oh-my-zsh/plugins/npx/README.md (limited to '.oh-my-zsh/plugins/npx/README.md') diff --git a/.oh-my-zsh/plugins/npx/README.md b/.oh-my-zsh/plugins/npx/README.md new file mode 100644 index 0000000..1c05293 --- /dev/null +++ b/.oh-my-zsh/plugins/npx/README.md @@ -0,0 +1,31 @@ +# NPX Plugin +> npx(1) -- execute npm package binaries. ([more info](https://github.com/zkat/npx)) + +This plugin automatically registers npx command-not-found handler if `npx` exists in your `$PATH`. + +## Setup + +- Add plugin to `~/.zshrc` + +```bash +plugins=(.... npx) +``` + +- Globally install npx binary (npx will be auto installed with recent versions of Node.js) +```bash +sudo npm install -g npx +``` + +## Note + +The shell auto-fallback doesn't auto-install plain packages. In order to get it to install something, you need to add `@`: + +``` +➜ jasmine@latest # or just `jasmine@` +npx: installed 13 in 1.896s +Randomized with seed 54385 +Started +``` + +It does it this way so folks using the fallback don't accidentally try to install regular typoes. + -- cgit v1.2.3