[Shell] Disable annoying output at shell startup

This commit is contained in:
Ivan Malison 2016-12-05 16:32:16 -08:00
parent 6e43c9fc4f
commit 90bb82d7c5
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -63,8 +63,10 @@ function _python_setup {
function _node_setup { function _node_setup {
# node/nvm # node/nvm
if [ -e /usr/share/nvm/init-nvm.sh ]; then if [ -e /usr/share/nvm/nvm.sh ]; then
source /usr/share/nvm/init-nvm.sh # This used to be init-nvm.sh but that automatically loads bash
# completion which can be quite annoying.
source /usr/share/nvm/nvm.sh
else else
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm