If nvm_ls is called without a pattern, and node exists, tack on "system".

This commit is contained in:
Jordan Harband
2014-07-14 11:38:26 -07:00
parent 42b010775b
commit 6e02e5a54c
2 changed files with 24 additions and 0 deletions

3
nvm.sh
View File

@@ -194,6 +194,9 @@ nvm_ls() {
echo "N/A"
return 3
fi
if [ -z "$PATTERN" ] && nvm_has_system_node; then
VERSIONS="$VERSIONS$(printf '\n%s' 'system')"
fi
echo "$VERSIONS"
return
}