Rodrigo Fernandes
|
909a0db72a
|
Lazy load nvm
nvm takes on average half of a second to load,
which is more than whole prezto takes to load.
This can be noticed when you open a new shell.
To avoid this, we are creating placeholder function for nvm, node,
and all the node packages previously installed in the system to only
load nvm when it is needed.
This code is based on the scripts:
* https://www.reddit.com/r/node/comments/4tg5jg/lazy_load_nvm_for_faster_shell_start/d5ib9fs
* http://broken-by.me/lazy-load-nvm/
* https://github.com/creationix/nvm/issues/781#issuecomment-236350067
|
2016-08-26 16:24:43 +01:00 |
|
Sorin Ionescu
|
ee0b02464c
|
[Fix #819] Check for node as a last resort
|
2015-02-24 15:29:25 -05:00 |
|
Tobias Witt
|
e144abb285
|
Fix node-module
The change recently introduced for #777 was actually breaking the module
completely, as it was only loaded if neither `node` nor `nvm`
were available.
|
2015-02-23 12:11:21 -05:00 |
|
Sorin Ionescu
|
1292587f95
|
[Fix #777] Check for nvm or node
|
2015-02-22 21:53:40 -05:00 |
|
Sorin Ionescu
|
b948e3630b
|
Load Homebrew installed NVM
|
2014-10-13 11:57:20 -04:00 |
|
Sorin Ionescu
|
a84ac5b002
|
Only one newline at end of file
|
2014-10-09 23:38:15 -04:00 |
|
Zeh Rizzatti
|
185235003e
|
Add support for nvm
|
2013-01-29 13:43:06 -05:00 |
|
Sorin Ionescu
|
060d9064f8
|
[Fix #202] Load modules all or nothing
|
2012-08-04 14:32:59 -04:00 |
|
Sorin Ionescu
|
bede1a2a71
|
Improve cache file generation
|
2012-07-03 21:38:56 -04:00 |
|
Sorin Ionescu
|
e5ec94af42
|
Check for non-empty files, not just existance
|
2012-05-05 18:08:25 -04:00 |
|
Sorin Ionescu
|
a7340886b3
|
[#23] Rename plugins to modules
|
2012-04-05 13:39:40 -04:00 |
|