Commit Graph

1265 Commits (05a2d986a439c77122d4d4def70d5b539bc1cb18)

Author SHA1 Message Date
Edward J. Jinotti 05a2d986a4 Improve zsh script to revert to default node version when exiting a .nvmrc directory. 2016-05-06 09:32:52 -04:00
Jordan Harband eb329ae7a9
[minor] display `chmod` command as well to fix file permissions. 2016-05-05 23:58:27 -07:00
Jordan Harband 1ca2aa648f
[minor] Echo nonwritable file path to stderr. 2016-05-05 23:53:13 -07:00
Jordan Harband f49eb61f8e
[Improvement] Use `nvm_sanitize_path` in `nvm_check_file_permissions`. 2016-05-05 23:52:51 -07:00
Jordan Harband d1962c6742
[Refactor] clean up `nvm_sanitize_path` 2016-05-05 23:52:26 -07:00
Jordan Harband 06c1cfcd85
[Refactor] avoid some pipes to `awk` 2016-05-05 01:30:38 -07:00
Jordan Harband 8a138d98ed
[Refactor] Use `awk` to improve version comparison performance 2016-05-05 01:27:17 -07:00
Jordan Harband 4842641e78
[Refactor] create `nvm_echo` and `nvm_err` 2016-05-05 00:17:35 -07:00
Jordan Harband 62cca4e6d8
Prefer `nvm --help` over `nvm help` 2016-05-05 00:14:12 -07:00
Jordan Harband ab49a5b0c3
[refactor] `nvm run`: call through to `nvm exec` to remove redundant code 2016-05-04 00:58:12 -07:00
Jordan Harband a69f9a8898
[fix] `nvm run`: pass through `--silent` on bare `nvm run` 2016-05-04 00:58:08 -07:00
Jordan Harband e8355e3189
[refactor] `nvm run`: refactor argument parsing. 2016-05-04 00:35:43 -07:00
Jordan Harband 0d62626ac6
[refactor] `nvm exec`: refactor argument parsing. 2016-05-04 00:34:07 -07:00
Jordan Harband 6fb94e0dab
[fix] `nvm exec`: show “io.js” for io.js versions. 2016-05-04 00:33:56 -07:00
Jordan Harband 0dd2846215
[fix] `set -e`: ensure `nvm_version` returning 3, and `nvm_alias` returning 2, doesn’t terminate the process. 2016-05-04 01:03:14 -07:00
Jordan Harband 1c3f8da6c3
`nvm alias`: factor out alias creation to `nvm_make_alias` 2016-04-27 14:23:34 -07:00
Jordan Harband 2d50606a78
[Tests] flesh out `nvm_print_default_alias` tests 2016-04-30 00:38:49 -07:00
Jordan Harband d705ec7ebf
[refactor] run through shellcheck 2016-04-30 00:33:28 -07:00
Jordan Harband 09f86b0e6e
[Refactor] Create and use `nvm_is_version_installed` 2016-04-27 17:11:16 -07:00
Cătălin Mariș 1f336ffbfe
Use `language: generic` in `.travis.yml`
Since the tests don't rely on / fall into any of the language
categories¹ defined by Travis CI, `language: generic`² can be used.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

¹ https://docs.travis-ci.com/user/languages/
² https://github.com/travis-ci/travis-ci/issues/4895#issuecomment-150703192
2016-04-29 00:57:10 +03:00
Jordan Harband fc68e615b2
`nvm alias`: colorize output to match `nvm ls` 2016-04-27 22:35:14 -07:00
Jordan Harband 379d079c30
[Tests] Ensure color codes are stripped in alias tests. 2016-04-27 17:05:33 -07:00
Philip Ingrey 9106cc25a4 Switch from pull to fetch in the manual update guide 2016-04-28 08:57:16 +01:00
Jordan Harband 91c77c6ba8
[Tests] fix shebangs 2016-04-27 17:34:53 -07:00
Jordan Harband ec54c925c1
[Tests] use mocks for `nvm_ls_remote`/`nvm_ls_remote_iojs` tests. 2016-04-27 01:25:56 -07:00
Jordan Harband 677c69dda0
`nvm alias`: explicitly forbid user aliases in subdirs. 2016-04-26 23:07:10 -07:00
Jordan Harband 1eb4d482e0
`nvm alias`: If the alias target is empty, call into `nvm unalias` 2016-04-26 22:58:31 -07:00
Jordan Harband 4df2a7fca9
`nvm alias`: factor out alias printing logic to functions 2016-04-26 22:29:55 -07:00
Jordan Harband 7b1a4e5126
`nvm alias`: slightly speed up alias resolution. 2016-04-26 22:21:57 -07:00
Jordan Harband 886cde7da5
Readme: Clean up trailing whitespace 2016-04-27 01:08:20 -07:00
Oskar Eriksson 804eae30fb Added section about verifying nvm install using the command util 2016-04-27 09:59:36 +02:00
Jorge Bucaran b0693f2d6a Add fin https://github.com/fisherman/fin.
fin is a pure fish, node version manager for fish-shell.
2016-04-27 11:24:59 +09:00
Jordan Harband 96afff7af2
[Tests] Set up “mocks” directory, and updater script. 2016-04-19 22:49:49 -07:00
Jordan Harband ac18d01854
[Tests] update index.tab data mocks. 2016-04-18 20:43:08 -07:00
Jordan Harband 755c39209e
[Refactor] make `check_file_permissions` be pure instead of relying on a closure.
Also, make it return early, to be a bit more efficient.

(from #847)
2016-04-18 19:23:51 -07:00
Jordan Harband 86c8b116d1 Merge pull request #847 from lukechilds/uninstall-bug
[New] `nvm uninstall`: Check installation dir permissions before uninstalling
2016-04-18 17:53:41 -07:00
Luke Childs 3a2d35f167 Check permissions in shell rather than using find -exec 2016-04-19 01:40:16 +01:00
Luke Childs 5970a06b19 Add slow test to check nvm uninstall with file permission error 2016-04-18 22:08:40 +01:00
Luke Childs dff4f80f32 Add fast test to check nvm uninstall with file permission error 2016-04-18 21:17:44 +01:00
Luke Childs 6fb528f4e4 Add slow test to check nvm uninstall 2016-04-18 21:17:44 +01:00
Luke Childs 005e29a223 Check dir permissions before attempting to nvm uninstall 2016-04-18 21:16:37 +01:00
Jordan Harband d3e334d86d [Fix] `read` exits 1 when `.nvmrc` lacks a trailing newline - avoid that.
Per https://github.com/creationix/nvm/issues/993#issuecomment-205399603
2016-04-04 22:08:36 -07:00
igrayson 6299cba467 Update README.markdown
Add mention for ~/.bashrc
2016-04-02 16:48:37 -07:00
Vincent Tunru b6f160a7b3 Fixes #995: Add example .nvmrc to the README 2016-03-27 00:15:31 +01:00
Jordan Harband 273ebedc55 [Fix] avoid an unbound variable when `nounset` bash option is set.
Per https://github.com/creationix/nvm/issues/868#issuecomment-198232952
2016-03-18 00:28:30 -07:00
Frankie Bagnardi d03f575446 Adds fast-nvm-fish to README 2016-03-17 14:14:21 -07:00
Robson Peixoto 8fb4ee0789 Unset unnecessary environment variables 2016-03-11 14:53:36 -03:00
flowmemo d8a3b074a6 fixed the number of alternatives in Windows in README.markdown 2016-03-11 23:31:28 +08:00
Whitney Young 972be30a1a Add link to avn
Also, clarified the existing shell integration intro text.
2016-03-08 19:48:27 -08:00
Tobias Witt ae70d558cb
Add section about "Deeper shell integration"
Also adds a snippet for zsh user to auto-issue `nvm use` when entering a
directory.
2016-03-08 18:44:30 +01:00