Indrajit Raychaudhuri
97c04a2ec0
node: Make nvm lookup mechanism more efficient in homebrewed environment
...
In homebrewed environment, avoid using `brew --prefix nvm` which is
ruby based and is super slow. Instead, rely on homebrew standard
behavior wherein all installed packages are available in canonical
path $(brew --prefix)/opt/<package> (for nvm it would obviously be
`$(brew --prefix)/opt/nvm`).
NB: `$(brew --prefix)` (without additional argument) is a simple shell
shortcut and doesn't have the same performance impact.
6 years ago
Indrajit Raychaudhuri
d2efaff04e
node: Cache completion for additional helpers
...
Add support for npm and additional well-known helper commands
6 years ago
Casey McGinty
045a2129fe
Update cache files when .zpreztorc file is modified
...
Fixes #1581
7 years ago
Kaleb Elwert
948d9b3aa5
Store cache files in a user-writable location
...
Fixes #1122
7 years ago
Indrajit Raychaudhuri
a60499f933
[general] Miscellaneous cleanup and formatting
7 years ago
Indrajit Raychaudhuri
8846db9d4d
[node] Always quote files when `source`-ing
7 years ago
Fernando H-T Goldáraz
42d9b78907
broken $path and $PATH if nodenv exists ( #1315 )
...
This change fixes a bug where no command can be found
(e.g. `ls`) due to the $path array being set to two elements,
one of them with all the previous paths separated by spaces.
This makes zsh break $PATH, instead of colons there are
spaces, and nothing works.
The idea is to have the array be set leveraging the word splitting
that we usually are told to avoid by quoting.
8 years ago
Griffin Yourick
94708f6b50
Fix path in node module
8 years ago
Griffin Yourick
8dafaae5a4
Use patterns from ruby module for initializing nodenv
8 years ago
Jamie Rolfs
483447082b
Add nodenv support to Node.js module
...
- Implementation from https://github.com/sorin-ionescu/prezto/pull/1001
- Documentation from https://github.com/sorin-ionescu/prezto/pull/1178
8 years ago
Sorin Ionescu
ee0b02464c
[ Fix #819 ] Check for node as a last resort
10 years ago
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.
10 years ago
Sorin Ionescu
1292587f95
[ Fix #777 ] Check for nvm or node
10 years ago
Sorin Ionescu
b948e3630b
Load Homebrew installed NVM
10 years ago
Sorin Ionescu
a84ac5b002
Only one newline at end of file
10 years ago
Zeh Rizzatti
185235003e
Add support for nvm
12 years ago
Sorin Ionescu
060d9064f8
[ Fix #202 ] Load modules all or nothing
13 years ago
Sorin Ionescu
bede1a2a71
Improve cache file generation
13 years ago
Sorin Ionescu
e5ec94af42
Check for non-empty files, not just existance
13 years ago
Sorin Ionescu
a7340886b3
[ #23 ] Rename plugins to modules
13 years ago
Sorin Ionescu
6d38d9836b
Fix node cache file sourcing
13 years ago
Sorin Ionescu
b96bbca51c
Added or edited file headers.
13 years ago
Sorin Ionescu
60f39d8d91
Moved hub into the git plugin.
13 years ago
Sorin Ionescu
b65195156d
Added missing FX and named colors to spectrum.
13 years ago
Sorin Ionescu
90e7debc30
Cleaned up the plugins.
13 years ago
Sorin Ionescu
b52adc8373
Added npm completion caching.
13 years ago
Sorin Ionescu
aa00cab97e
Merged npm plugin into node plugin.
13 years ago
Andrew Hodges
80ed1cbc5d
Rollback of Pull #366
...
sorin-ionescu had some good points.
14 years ago
Andrew Hodges
f14b00808d
Node.js Helpers
...
Add helper function to open node api in browser. Add binaries installed via
npm to path. Tell node where to find things (what things?).
14 years ago