npm.sh
--no-colors options: nvm list —no-colors
This commit is contained in:
@@ -27,6 +27,9 @@ if [[ $1 == "--nodistract" ]]; then
|
|||||||
no_distract=true
|
no_distract=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set ls_color to '' for output nvm list in colors, else '--no-colors'
|
||||||
|
ls_color='--no-colors'
|
||||||
|
|
||||||
# Set doctor=true to run 'npm doctor' and 'npm cache verify' each time
|
# Set doctor=true to run 'npm doctor' and 'npm cache verify' each time
|
||||||
doctor=true
|
doctor=true
|
||||||
|
|
||||||
@@ -77,7 +80,7 @@ if [ -f "$NVM_DIR/nvm.sh" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
node_install=$(nvm list)
|
node_install=$(nvm list "$ls_color")
|
||||||
echo -e "\033[4m🌿 node.js\033[0m (installed versions): \n$node_install"
|
echo -e "\033[4m🌿 node.js\033[0m (installed versions): \n$node_install"
|
||||||
|
|
||||||
# homebrew
|
# homebrew
|
||||||
@@ -96,7 +99,7 @@ elif [ -f "/usr/local/opt/nvm/nvm.sh" ]; then
|
|||||||
echo -e "or run \033[1;3mKymsu's homebrew.sh script\033[0m."
|
echo -e "or run \033[1;3mKymsu's homebrew.sh script\033[0m."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
node_install=$(nvm list)
|
node_install=$(nvm list "$ls_color")
|
||||||
echo -e "\033[4m🌿 node.js\033[0m (installed versions): \n$node_install"
|
echo -e "\033[4m🌿 node.js\033[0m (installed versions): \n$node_install"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user