Eric Henderson
e57f45a3d0
revert the previous change and replace it with an optimized version of the functionality
2022-12-30 13:38:22 -05:00
Eric Henderson
9af1493550
potential performance optimization on NVM_AUTO_USE
2022-12-30 13:38:22 -05:00
Eric Henderson
0cd8789d1e
make it possible to disable auto-use after shell init
2022-12-30 13:38:22 -05:00
Eric Henderson
52d743363c
Add support for NVM_AUTO_USE_IGNORE_VERSION and NVM_AUTO_USE_IGNORE_PATH as methods for skiping the auto-use in specific cases
2022-12-30 13:38:22 -05:00
Joeri de Gooijer
23067bd9bb
Add NVM_LAZY_LOAD_EXTRA_COMMANDS option ( #67 )
2020-06-16 14:21:22 +07:00
Alexandre Faria
fdf4d6cc7d
Add NVM_COMPLETION option ( #63 )
2020-05-01 17:42:28 +07:00
Eddie Monge
9f7e144397
Use builtin cd command ( #61 )
2020-03-14 16:30:22 +07:00
ethanwu10
557653b340
Update nvm repository URL ( #56 )
...
nvm has moved to nvm-sh/nvm, update the git clone URL to match
2019-10-08 09:51:42 +07:00
Bartosz Legięć
9ae1115e76
Make nvm upgrade
follow the official git upgrade instructions from nvm ( #46 )
...
https://github.com/creationix/nvm#manual-upgrade
2019-02-08 19:30:01 +07:00
Aitor Guevara
1bdd5e2128
silent which nvm
error in lazy load ( #36 )
2017-09-15 14:13:22 +01:00
Luke Childs
5c59940a6d
Mute unset output
2017-07-18 21:00:39 +01:00
Luke Childs
9db79524fa
Automatically alias rc/nightly to version on install
2017-05-29 18:10:59 +07:00
Luke Childs
04d6b3dad9
Add console output while clearing mirror cache
...
Otherwise it looks like we're just hanging
2017-05-29 18:10:59 +07:00
Luke Childs
428331fce6
Re-run nvm ls-remote after using a mirror
...
Otherwise we're left with data from the mirror cached when we run nvm ls
2017-05-29 18:10:59 +07:00
Luke Childs
7cf755d89c
Wrap nvm i as well as nvm install
2017-05-29 18:10:59 +07:00
Luke Childs
3d6c5606b2
Wrap nvm install to add support for rc/nightly
2017-05-29 18:10:59 +07:00
Luke Childs
4637e8f01b
Always return a good exit code
2017-01-10 13:08:42 +07:00
Luke Childs
bc08d9cc64
Remove final return
2017-01-10 13:08:42 +07:00
Luke Childs
3db9a695a3
This isn't JavaScript you pleb
2017-01-10 12:21:09 +07:00
Luke Childs
ee87d41ee1
Swap if conditions round to be more readable
2017-01-05 18:25:06 +07:00
Luke Childs
5ce23eee2b
Make .nvmrc version command more concise
2017-01-05 18:25:06 +07:00
Luke Childs
2f3f7dfc4e
Install node version from .nvmrc if we don't have it
2017-01-05 18:25:06 +07:00
Luke Childs
a01c899aec
Use double test brackets
2017-01-05 18:25:06 +07:00
Luke Childs
d03b986535
Don't reset to default nvm version on cd if it was set manually
2017-01-05 18:25:06 +07:00
Luke Childs
8bdba4fa1e
Always return true so failed checks don't make us return a non zero exit code
2017-01-05 18:25:06 +07:00
Luke Childs
3388eebd8a
Run nvm use
rather than nvm install
on cd auto use
2017-01-05 18:25:06 +07:00
Luke Childs
ffabddcdef
Only run _zsh_nvm_auto_use if nvm is fully loaded
2017-01-05 18:25:06 +07:00
Luke Childs
aa5c6e3337
Add NVM_AUTO_USE functionality
2017-01-05 18:25:06 +07:00
Luke Childs
e05c86722d
Add lazy loader for yarn if present
...
yarn recommends installing via brew (or something other than npm) which means our it won't be picked up in our nvm node_modules glob.
2016-12-18 18:23:43 +07:00
Luke Childs
0dad2bdef2
Make sure only aliases conflicts are removed from lazy loading
...
Binary conflicts are ok. Fixes #15
2016-12-16 19:48:16 +07:00
Luke Childs
8367ab3120
Add ZSH_NVM_NO_LOAD option
...
If ZSH_NVM_NO_LOAD is set to true then zsh-nvm won't actually do anything after setting up environment variables and functions. This is usefull for unit tests and debugging.
2016-12-13 14:47:13 +07:00
Luke Childs
aa1fccff4b
Don't set lazy loaders that conflict with existing globals
2016-10-25 10:26:33 +01:00
Luke Childs
e379610cb9
Make lazy loading compatible with no use option
2016-10-01 13:54:44 +01:00
Luke Childs
e2e47a8c21
Add NVM_NO_USE option
2016-10-01 13:54:36 +01:00
Luke Childs
ce7bc2a0a2
Wrap binary path output in quotes
2016-09-27 22:02:49 +01:00
Luke Childs
007fd93fd7
Make sure we have binaries before trying to format them
...
Otherwise basename spits out errors #8
2016-09-27 21:09:12 +01:00
Vadim Kazakov
620000bab0
separate array declaration from assignment ( #7 )
...
Fixes `bad pattern` error on old versions of zsh
2016-08-31 19:13:34 +01:00
Luke Childs
1be9149af6
Set max-args
to 1 on xargs
...
Otherwise it misses binaries (#4 )
2016-08-29 12:41:50 +01:00
Luke Childs
49f23771d3
Use echo to list glob matches rather than ls
...
ls falls back to current dir if there are no glob matches
i.e right after install
2016-08-29 11:52:57 +01:00
Luke Childs
8709621973
Allow nullglobs when looking for binaries
2016-08-28 14:00:30 +01:00
Luke Childs
eef332636f
Add lazy loading support to node <0.12
2016-08-27 20:27:56 +01:00
Luke Childs
1c6d8dd15e
Refactor lazy loading
2016-08-27 20:23:44 +01:00
Luke Childs
2a9ee9e10f
Use NVM_DIR
for lazy loading binary check
2016-08-27 13:28:23 +01:00
Luke Childs
cade63ed94
Add NVM_LAZY_LOAD
option
2016-08-27 10:18:45 +01:00
Luke Childs
639e7e9f5c
Add lazy loading
2016-08-27 10:05:40 +01:00
Luke Childs
c1517e0045
Remove unused function _zsh_nvm_get
2016-08-18 17:56:02 +01:00
Luke Childs
e0be3a1bdf
Get latest release from git tags
2016-08-09 20:54:02 +01:00
Luke Childs
0ccae77ce2
Do proper empty string test rather than truthy
...
Truthy doesn't seem to work on older versions of zsh
5.0.2 fails, 5.1 works
2016-07-31 20:15:06 +01:00
Luke Childs
281614aacd
Export $NVM_DIR
2016-07-30 00:05:39 +01:00
Luke Childs
86b7f6c1a9
Call help
instead of --help
...
`--help` is only available on newer versions of nvm, `help` is backwards compatible
2016-07-26 23:32:16 +01:00