|
4 | 4 |
|
5 | 5 | Invoke `nodenv alias <name> <version>` to make a symbolic link from `<name>` to |
6 | 6 | `<version>` in the [nodenv][] versions directory, effectively creating an |
7 | | -alias. The cool part is that if you pass in a point release as the name, you |
8 | | -can give `--auto` to link to the latest installed patch level. For example, |
9 | | -`nodenv alias 0.10 --auto` will automatically create an alias from `0.10` to |
10 | | -`0.10.36` (or whatever the most recent version you have installed is). |
| 7 | +alias. The cool part is that if you pass in a major or major.minor release as the name, you |
| 8 | +can give `--auto` to link to the latest installed minor or patch level (respectively). For example, |
| 9 | +`nodenv alias 4.4 --auto` will automatically create an alias from `4.4` to |
| 10 | +`4.4.7` (or to whatever is the most recent version you have installed). Similarly, |
| 11 | +`nodenv alias 6 --auto` will automatically create an alias from `6` to |
| 12 | +`6.10.3` (or to whatever is the most recent version you have installed). |
11 | 13 |
|
12 | 14 | Plus, if you're using [node-build][], `nodenv install major.minor.patch` |
13 | | -automatically invokes `nodenv alias major.minor --auto`, so you'll always have |
14 | | -up to date aliases for point releases. |
| 15 | +automatically invokes `nodenv alias major --auto` and |
| 16 | +`nodenv alias major.minor --auto`, so you'll always have |
| 17 | +up to date aliases. |
15 | 18 |
|
16 | 19 | ## Installation |
17 | 20 |
|
18 | 21 | git clone https://github.com/nodenv/nodenv-aliases.git $(nodenv root)/plugins/nodenv-aliases |
19 | 22 |
|
20 | 23 | ## Usage |
21 | 24 |
|
22 | | -Create a `major.minor` alias for each installed minor release: |
| 25 | +Create a `major` and `major.minor` alias for each installed major and minor release: |
23 | 26 |
|
24 | 27 | nodenv alias --auto |
25 | 28 |
|
| 29 | +Create a `major` alias for the highest major release of, say 6: |
| 30 | + |
| 31 | + nodenv alias 6 --auto |
| 32 | + |
26 | 33 | Create a `major.minor` alias for the highest minor release of, say 0.8: |
27 | 34 |
|
28 | 35 | nodenv alias 0.8 --auto |
29 | 36 |
|
| 37 | +Create a `major.minor.patch-pre` alias for the highest prerelease of, say 8: |
| 38 | + |
| 39 | + nodenv alias 8.0.0-rc --auto |
| 40 | + |
30 | 41 | Create a named alias for a specific release: |
31 | 42 |
|
32 | | - nodenv alias my-favorite-node 0.10.36 |
| 43 | + nodenv alias boron 6 |
33 | 44 |
|
34 | 45 | Remove an alias: |
35 | 46 |
|
|
0 commit comments