From 8bf44bc68715b98a87825a2fd09c6071255ebac5 Mon Sep 17 00:00:00 2001 From: Lucas Augusto Date: Sun, 24 Mar 2019 15:55:24 -0300 Subject: [PATCH] Update commands for command nvm in bash - change mode for command for install nvm in home - insert command for bash completion --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2226a57..16e7fbd 100644 --- a/README.md +++ b/README.md @@ -61,8 +61,9 @@ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | **Note:** If the environment variable `$XDG_CONFIG_HOME` is present, it will place the `nvm` files there. ```sh -export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm" +export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # this loads nvm bash_completion ``` **Note:** You can add `--no-use` to the end of the above script (...`nvm.sh --no-use`) to postpone using `nvm` until you manually [`use`](#usage) it.