Commit Graph
38 Commits
Author SHA1 Message Date
Koen PuntandJordan Harband 80e349edb1 locate .nvmrc without find
instead of using find and actually cd'ing into directories
we're now using simple string replacement on the `pwd`
2014-05-02 23:02:34 -07:00
Koen Punt 9157cb4cfe Link to latest version of install script (0.4.0) 2014-03-27 10:19:00 +01:00
Koen Punt 5342b6a04c Emulate curl with wget 2014-03-26 11:14:09 +01:00
Koen Punt 2d0c025c49 Prevent fallback 2014-03-26 11:14:08 +01:00
Koen Punt 6ed93f4c01 Force install method by setting METHOD=git/script 2014-03-26 11:14:08 +01:00
Koen Punt 3c2719a85e fix 2014-03-26 11:14:08 +01:00
Koen Punt c47f03f996 Display error when unable to update 2014-03-26 11:11:26 +01:00
Koen Punt 300022642a git, curl and wget now all in one installer 2014-03-25 20:53:05 +01:00
Koen Punt bce3abaa4b use comparison opts 2014-03-25 20:52:30 +01:00
Koen Punt 9f6280265a updated README 2014-03-25 20:52:30 +01:00
Koen Punt 7211c9ee29 updated output without special characters (tab; \t)
Omit duplicate 'finish line'
normalized indentation
2014-03-25 20:51:39 +01:00
Koen Punt 246caa8581 Updated source string, use hard path as NVM is not always installed in $HOME/.nvm 2014-03-25 20:51:39 +01:00
Koen Punt 1fac49f887 replaced undocumented option for specifying the profile as first argument to specifying it as a environment variable (eg: PROFILE=~/.myprofile ./install-gitless.sh)
also; fixed indentation and added .zshrc as possible profile
2014-03-25 20:51:39 +01:00
Koen Punt d2422a623a made NVM_DIR and NVM_SOURCE configurable using environment variables 2014-03-25 20:51:39 +01:00
Koen Punt fcc00b22b7 don't make use of pushd and popd as they are not universal 2014-03-25 20:51:39 +01:00
Koen Punt 0787a55999 replaced fatalExit function for 'inline' exit
exit on errors (set -e)
simplified if for NVM_DIR and NVM_SOURCE, corrected indentation
2014-03-25 20:51:39 +01:00
Koen Punt ec7909dcd3 Use NVM_ prefix for variables 2014-03-23 16:42:38 +01:00
Koen Punt 9f0520cdd0 Add travis badge to README 2014-03-22 21:19:43 +01:00
Koen Punt def7ec5364 install shells before running tests 2014-03-22 18:51:39 +01:00
Koen Punt 52a384a0cc Add Makefile for multishell testing
updated nvm current test for zsh
2014-03-22 18:47:15 +01:00
Koen Punt 4a9a15c404 Fix NVM_DIR discovery 2014-03-21 10:03:16 +01:00
Koen Punt a34c080d77 Fix nvm ls for v* numbers
Previously calling nvm ls with v* number (nvm ls v0.2)
would not return any results.

So now the v is prepended if its not already there
2014-03-18 10:53:57 +01:00
Koen Punt 0b97ee1d2a Failing test for when using nvm ls with v* version 2014-03-18 10:49:44 +01:00
Koen Punt e30424d22f define all functions with nvm_ prefix 2014-03-18 01:41:02 +01:00
Koen Punt ae4c841742 Double == causes error on travis (dash shell) 2014-03-17 19:44:40 +01:00
Koen Punt 38a0c997e2 Added travis config, fixed tests for use on travis 2014-03-17 14:33:25 +01:00
Koen Punt 70f1734c12 updated tests for altered output 2014-03-17 13:24:24 +01:00
Koen Punt 1d40a5bc8b Replaced echo for printf when using formatted strings
Updated version list, now also compatible with zsh
2014-03-17 13:19:39 +01:00
Koen Punt 1a19de9d20 Use has util method and use comparison opts 2014-03-15 15:59:46 +01:00
Koen Punt f3d1770e3e nvm exec wrapper to execute commands with a specific node version 2014-03-15 15:58:32 +01:00
Koen Punt e99fc43ab2 helper method for testing existence of commands 2013-12-12 10:46:40 +01:00
Koen Punt aba4346a86 Universal test of unsetopt command
According to http://stackoverflow.com/a/7522866/189431 it should work in "bash, zsh, ksh and sh (as provided by dash)".
2013-12-11 13:49:58 +01:00
Koen Punt 0f05655ee6 Return 1 so exit status is not null on error 2013-06-03 22:26:52 +03:00
Koen Punt 70e1b81ad3 Add exit code, fix #190 2013-01-21 17:26:16 +01:00
Koen Punt dc2bf8c526 Fixed variable expansion for SOURCE_STR 2012-12-04 23:26:49 +01:00
Koen Punt b063b32642 Added instructions for the install script 2012-12-04 23:21:00 +01:00
Koen Punt 3c4bf80ec7 added basic install file 2012-10-30 00:04:52 +01:00
Koen Punt 4a6c696074 Made string comparison also compatible for zsh 2012-10-09 13:36:44 +02:00