From 03c4f1b26cc106f2991a0f07c1c93ec2281b9099 Mon Sep 17 00:00:00 2001 From: Anshul Guleria Date: Mon, 18 May 2020 12:10:08 +0530 Subject: [PATCH] chore: Adds asdf commands for latest version Added instructions to install latest version of deno instead of specific version as that would be more common use case. Removed deno plugin url in `plugin add` command as `deno` is available in `asdf` plugin list --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a9d85db..19c3e815 100644 --- a/README.md +++ b/README.md @@ -66,8 +66,22 @@ yay -S deno-bin **With [asdf](https://asdf-vm.com) and [asdf-deno](https://github.com/asdf-community/asdf-deno):** ```sh -asdf plugin-add deno https://github.com/asdf-community/asdf-deno.git +asdf plugin add deno +# Get latest version of deno available +DENO_LATEST=$(asdf latest deno) + +asdf install deno $DENO_LATEST + +# Activate globally with: +asdf global deno $DENO_LATEST + +# Activate locally in the current folder with: +asdf local deno $DENO_LATEST + +#====================================================== +# If you want to install specific version of deno then use that version instead +# of DENO_LATEST variable example asdf install deno 1.0.0 # Activate globally with: