From ed02a97de8c8e161075a52f538fdcbe9d9ed00b5 Mon Sep 17 00:00:00 2001 From: Olivier Lacan Date: Thu, 28 Mar 2013 03:26:33 -0300 Subject: [PATCH] Recommend installation in hidden ~/.nvm directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The README oddly recommends to install nvm inside of `~/nvm` which goes against conventions. It makes more sense to install tools like nvm in hidden home directories. It's also best to use the `source` command explicitly instead of its `.` alias so people understand what the command does. --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index a85482f..8dfb0dc 100644 --- a/README.markdown +++ b/README.markdown @@ -23,11 +23,11 @@ For manual install create a folder somewhere in your filesystem with the `nvm.sh Or if you have `git` installed, then just clone it: - git clone git://github.com/creationix/nvm.git ~/nvm + git clone git://github.com/creationix/nvm.git ~/.nvm To activate nvm, you need to source it from your bash shell - . ~/nvm/nvm.sh + source ~/.nvm/nvm.sh I always add this line to my `~/.bashrc` or `~/.profile` file to have it automatically sourced upon login. Often I also put in a line to use a specific version of node.