summaryrefslogtreecommitdiff
path: root/plugins/asdf
diff options
context:
space:
mode:
authorArthur <82575487+arthur-mountain@users.noreply.github.com>2025-04-20 02:55:23 +0800
committerGitHub <noreply@github.com>2025-04-19 20:55:23 +0200
commit92bad89f8a9141fcdc0b682941ee46729b6e4cb6 (patch)
treeda535d89315023a90dcd3b7039a9c3f2c025f181 /plugins/asdf
parent9957e4e8be9d63b9c42673f0eb86fa2dea845b32 (diff)
downloadzsh-92bad89f8a9141fcdc0b682941ee46729b6e4cb6.tar.gz
zsh-92bad89f8a9141fcdc0b682941ee46729b6e4cb6.tar.bz2
zsh-92bad89f8a9141fcdc0b682941ee46729b6e4cb6.zip
docs(asdf): update usage example (#13055)
Diffstat (limited to 'plugins/asdf')
-rw-r--r--plugins/asdf/README.md21
1 files changed, 15 insertions, 6 deletions
diff --git a/plugins/asdf/README.md b/plugins/asdf/README.md
index e8ff2d740..69db6930a 100644
--- a/plugins/asdf/README.md
+++ b/plugins/asdf/README.md
@@ -19,21 +19,30 @@ Example for installing the nodejs plugin and the many runtimes for it:
```sh
# Add plugin to asdf
-asdf plugin add nodejs
+asdf plugin add nodejs
-# Install the latest available nodejs runtime version
+# Install the latest available version
asdf install nodejs latest
-# Install nodejs v16.5.0 runtime version
+# Uninstall the latest version
+asdf uninstall nodejs latest
+
+# Install a specific version
asdf install nodejs 16.5.0
-# Set the latest version in .tools-version in the current working directory
+# Set the latest version in .tool-versions of the `current directory`
asdf set nodejs latest
-# Set a version globally that will apply to all directories under $HOME
-asdf set -u nodejs 16.5.0
+# Set a specific version in the `parent directory`
+asdf set -p nodejs 16.5.0 # -p is shorthand for --parent
+
+# Set a global version under `$HOME`
+asdf set -u nodejs 16.5.0 # -u is shorthand for --home
```
+For more commands, run `asdf help` or refer to the
+[asdf CLI documentation](https://asdf-vm.com/manage/commands.html#all-commands).
+
## Maintainer
- [@RobLoach](https://github.com/RobLoach)