From 58517f994790e1f64097ad99a399f6ba20a9ff95 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 1 Aug 2012 09:21:54 +0100 Subject: [PATCH] Load shell-completion for nvm if file exists --- shell/nodejs.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell/nodejs.sh b/shell/nodejs.sh index e7bc549..13ebb6c 100644 --- a/shell/nodejs.sh +++ b/shell/nodejs.sh @@ -5,4 +5,9 @@ # Load nvm if it's available if [ -f "$HOME/.nvm/nvm.sh" ]; then source "$HOME/.nvm/nvm.sh" + + # And it's shell completion + if [ -f "$HOME/.nvm/bash_completion" ]; then + source "$HOME/.nvm/bash_completion" + fi fi