mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 06:41:50 +00:00
Added command to get current nvm environment.
This commit is contained in:
parent
d3f04c793e
commit
dd157129a6
3
nvm.sh
3
nvm.sh
@ -436,6 +436,9 @@ nvm() {
|
|||||||
print_versions "`nvm_ls_remote $2`"
|
print_versions "`nvm_ls_remote $2`"
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
"current" )
|
||||||
|
echo -ne "current: \t"; nvm_version current
|
||||||
|
;;
|
||||||
"alias" )
|
"alias" )
|
||||||
mkdir -p $NVM_DIR/alias
|
mkdir -p $NVM_DIR/alias
|
||||||
if [ $# -le 2 ]; then
|
if [ $# -le 2 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user