From 90bb82d7c5c471c7be5f3ce1212c3423936982cb Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 5 Dec 2016 16:32:16 -0800 Subject: [PATCH] [Shell] Disable annoying output at shell startup --- dotfiles/lib/shellpath.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dotfiles/lib/shellpath.sh b/dotfiles/lib/shellpath.sh index f463c441..bb0dcd49 100644 --- a/dotfiles/lib/shellpath.sh +++ b/dotfiles/lib/shellpath.sh @@ -63,8 +63,10 @@ function _python_setup { function _node_setup { # node/nvm - if [ -e /usr/share/nvm/init-nvm.sh ]; then - source /usr/share/nvm/init-nvm.sh + if [ -e /usr/share/nvm/nvm.sh ]; then + # 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 export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm