From dd157129a6fc6ac2168528b3bb41066138c7472d Mon Sep 17 00:00:00 2001 From: Timo Sand Date: Wed, 13 Mar 2013 13:21:30 +0000 Subject: [PATCH] Added command to get current nvm environment. --- nvm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nvm.sh b/nvm.sh index e4ce9f8..27db03e 100755 --- a/nvm.sh +++ b/nvm.sh @@ -436,6 +436,9 @@ nvm() { print_versions "`nvm_ls_remote $2`" return ;; + "current" ) + echo -ne "current: \t"; nvm_version current + ;; "alias" ) mkdir -p $NVM_DIR/alias if [ $# -le 2 ]; then