npx.plugin.zsh 404 B

123456789101112
  1. if (( ! $+commands[npx] )); then
  2. return
  3. fi
  4. if ! npx_fallback_script="$(npx --shell-auto-fallback zsh 2>/dev/null)"; then
  5. print -u2 ${(%):-"%F{yellow}This \`npx\` version ($(npx --version)) is not supported.%f"}
  6. else
  7. source <(<<< "$npx_fallback_script")
  8. fi
  9. print -u2 ${(%):-"%F{yellow}The \`npx\` plugin is deprecated and will be removed soon. %BPlease disable it%b.%f"}
  10. unset npx_fallback_script