From 7c8449e0e84d1d809f656d8d9c49e6703887902f Mon Sep 17 00:00:00 2001
From: Luke Childs <lukechilds123@gmail.com>
Date: Fri, 8 Jul 2016 19:47:16 +0100
Subject: [PATCH] Set NVM_DIR

---
 zsh-nvm.plugin.zsh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh
index c57dee0..2b9a474 100644
--- a/zsh-nvm.plugin.zsh
+++ b/zsh-nvm.plugin.zsh
@@ -1,3 +1,7 @@
+if [ -z "$NVM_DIR" ]; then
+  NVM_DIR="$HOME/.nvm"
+fi
+
 _zsh_nvm_has() {
   type "$1" > /dev/null 2>&1
 }