prezto/modules/node/README.md
2012-12-21 01:26:17 -03:00

1.2 KiB

Node.js

Provides utility functions for Node.js and loads npm completion.

nvm

Loads nvm, which allows for managing multiple, isolated node.js installations in the home directory.

Functions

  • node-doc opens the Node.js online API documentation in the default browser.
  • node-info exposes information about the node.js environment via the $node_info associative array.

Theming

To display the version number of the current node.js instance (when nvm is setup), define the following style inside the prompt_name_setup function.

# %v - node.js version
zstyle ':prezto:module:node:info:version' format 'version:%v'

Then add $node_info[version] to either $PROMPT or $RPROMPT and call node-info in prompt_name_preexec hook function.

Authors

The authors of this module should be contacted via the issue tracker.