1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-11-04 21:31:19 +08:00

docs(asdf): update usage example (#13055)

This commit is contained in:
Arthur 2025-04-20 02:55:23 +08:00 committed by GitHub
parent 9957e4e8be
commit 92bad89f8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,19 +21,28 @@ Example for installing the nodejs plugin and the many runtimes for it:
# Add plugin to asdf # 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 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 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 asdf set nodejs latest
# Set a version globally that will apply to all directories under $HOME # Set a specific version in the `parent directory`
asdf set -u nodejs 16.5.0 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 ## Maintainer
- [@RobLoach](https://github.com/RobLoach) - [@RobLoach](https://github.com/RobLoach)