Luke Childs
7cf755d89c
Wrap nvm i as well as nvm install
8 years ago
Luke Childs
3d6c5606b2
Wrap nvm install to add support for rc/nightly
8 years ago
Luke Childs
4637e8f01b
Always return a good exit code
8 years ago
Luke Childs
bc08d9cc64
Remove final return
8 years ago
Luke Childs
3db9a695a3
This isn't JavaScript you pleb
8 years ago
Luke Childs
ee87d41ee1
Swap if conditions round to be more readable
8 years ago
Luke Childs
5ce23eee2b
Make .nvmrc version command more concise
8 years ago
Luke Childs
2f3f7dfc4e
Install node version from .nvmrc if we don't have it
8 years ago
Luke Childs
a01c899aec
Use double test brackets
8 years ago
Luke Childs
d03b986535
Don't reset to default nvm version on cd if it was set manually
8 years ago
Luke Childs
8bdba4fa1e
Always return true so failed checks don't make us return a non zero exit code
8 years ago
Luke Childs
3388eebd8a
Run `nvm use` rather than `nvm install` on cd auto use
8 years ago
Luke Childs
ffabddcdef
Only run _zsh_nvm_auto_use if nvm is fully loaded
8 years ago
Luke Childs
aa5c6e3337
Add NVM_AUTO_USE functionality
8 years ago
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.
8 years ago
Luke Childs
0dad2bdef2
Make sure only aliases conflicts are removed from lazy loading
Binary conflicts are ok. Fixes #15
8 years ago
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.
8 years ago
Luke Childs
aa1fccff4b
Don't set lazy loaders that conflict with existing globals
8 years ago
Luke Childs
e379610cb9
Make lazy loading compatible with no use option
8 years ago
Luke Childs
e2e47a8c21
Add NVM_NO_USE option
8 years ago
Luke Childs
ce7bc2a0a2
Wrap binary path output in quotes
8 years ago
Luke Childs
007fd93fd7
Make sure we have binaries before trying to format them
Otherwise basename spits out errors #8
8 years ago
Vadim Kazakov
620000bab0
separate array declaration from assignment ( #7 )
Fixes `bad pattern` error on old versions of zsh
8 years ago
Luke Childs
1be9149af6
Set `max-args` to 1 on `xargs`
Otherwise it misses binaries (#4 )
8 years ago
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
8 years ago
Luke Childs
8709621973
Allow nullglobs when looking for binaries
8 years ago
Luke Childs
eef332636f
Add lazy loading support to node <0.12
8 years ago
Luke Childs
1c6d8dd15e
Refactor lazy loading
8 years ago
Luke Childs
2a9ee9e10f
Use `NVM_DIR` for lazy loading binary check
8 years ago
Luke Childs
cade63ed94
Add `NVM_LAZY_LOAD` option
8 years ago
Luke Childs
639e7e9f5c
Add lazy loading
8 years ago
Luke Childs
c1517e0045
Remove unused function _zsh_nvm_get
9 years ago
Luke Childs
e0be3a1bdf
Get latest release from git tags
9 years ago
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
9 years ago
Luke Childs
281614aacd
Export $NVM_DIR
9 years ago
Luke Childs
86b7f6c1a9
Call `help` instead of `--help`
`--help` is only available on newer versions of nvm, `help` is backwards compatible
9 years ago
Luke Childs
a7b8594684
Add revert command
9 years ago
Luke Childs
781b46dede
Use default upgrade if it's built in
9 years ago
Luke Childs
96fa6aab57
Store previous nvm version when upgrading
9 years ago
Luke Childs
a6b8ef980f
Move new loading code into reusable function
9 years ago
Luke Childs
21bfbbf3c8
Extend nvm function for upgrade command
9 years ago
Luke Childs
0795cfebbb
Silence git fetch output when updating
9 years ago
Luke Childs
d02a2ac3f8
Source new nvm version after update
9 years ago
Luke Childs
a8bfc705a7
Notify user when nvm is being installed
9 years ago
Luke Childs
1b01447272
Make NVM_DIR check consistent with others
9 years ago
Luke Childs
a8194ea562
Reorder update messages
9 years ago
Luke Childs
03d7a4bce4
Move all cd commands into sub commands
This is to stop the user's CWD being changed
9 years ago
Luke Childs
eb40361f00
Check if we need to update before updating
9 years ago
Luke Childs
2babe68372
Add update function
9 years ago
Luke Childs
34e7a4d28d
Source nvm
9 years ago