2f3a141f65ba082e1eb42ea3123fc2bd978c0c83

Author
Kartik Vashistha <kartikv.work@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

docs(asdf): match README with 0.16 (#13026)

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>

Diff

 1diff --git a/plugins/asdf/README.md b/plugins/asdf/README.md
 2index 4af69a75cd542a050a911b0060198793cff8d453..e8ff2d740216d00e81e39159a66fa32ceb0fc486 100644
 3--- a/plugins/asdf/README.md
 4+++ b/plugins/asdf/README.md
 5@@ -1,32 +1,39 @@
 6-## asdf
 7+# asdf
 8 
 9 Adds integration with [asdf](https://github.com/asdf-vm/asdf), the extendable version manager, with support for Ruby, Node.js, Elixir, Erlang and more.
10 
11-### Installation
12+## Installation
13 
14-1. [Download asdf](https://asdf-vm.com/guide/getting-started.html#_2-download-asdf) by running the following:
15+1. [Install](https://asdf-vm.com/guide/getting-started.html#_1-install-asdf) asdf and ensure that's it's discoverable on `$PATH`;
16+2. Enable it by adding it to your `plugins` definition in `~/.zshrc`:
17 
18-  ```
19-  git clone https://github.com/asdf-vm/asdf.git ~/.asdf
20-  ```
21+```sh
22+plugins=(asdf)
23+```
24 
25-2. [Enable asdf](https://asdf-vm.com/guide/getting-started.html#_3-install-asdf) by adding it to your `plugins` definition in `~/.zshrc`.
26+## Usage
27 
28-  ```
29-  plugins=(asdf)
30-  ```
31+Refer to the [asdf plugin documentation](https://asdf-vm.com/guide/getting-started.html#_4-install-a-plugin) for information on how to add a plugin and install the many runtime versions for it.
32 
33-### Usage
34+Example for installing the nodejs plugin and the many runtimes for it:
35 
36-See the [asdf documentation](https://asdf-vm.com/guide/getting-started.html#_4-install-a-plugin) for information on how to use asdf:
37+```sh
38+# Add plugin to asdf
39+asdf plugin add nodejs 
40 
41-```
42-asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
43+# Install the latest available nodejs runtime version
44 asdf install nodejs latest
45-asdf global nodejs latest
46-asdf local nodejs latest
47+
48+# Install nodejs v16.5.0 runtime version
49+asdf install nodejs 16.5.0
50+
51+# Set the latest version in .tools-version in the current working directory
52+asdf set nodejs latest
53+
54+# Set a version globally that will apply to all directories under $HOME
55+asdf set -u nodejs 16.5.0
56 ```
57 
58-### Maintainer
59+## Maintainer
60 
61 - [@RobLoach](https://github.com/RobLoach)