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.
1011-### Installation
12+## Installation
1314-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`:
1718- ```
19- git clone https://github.com/asdf-vm/asdf.git ~/.asdf
20- ```
21+```sh
22+plugins=(asdf)
23+```
2425-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
2728- ```
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.
3233-### Usage
34+Example for installing the nodejs plugin and the many runtimes for it:
3536-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
4041-```
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 ```
5758-### Maintainer
59+## Maintainer
6061 - [@RobLoach](https://github.com/RobLoach)