Added command to get current nvm environment.

master
Timo Sand 2013-03-13 13:21:30 +00:00
parent d3f04c793e
commit dd157129a6
1 changed files with 3 additions and 0 deletions

3
nvm.sh
View File

@ -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