From 952d0067b3632c161ac170eae4cc4ff82632e589 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Sun, 1 Jan 2017 18:13:13 +0800 Subject: [PATCH] [Fix] bash_completion should make sure nvm loaded --- bash_completion | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bash_completion b/bash_completion index 0be1318..d515165 100644 --- a/bash_completion +++ b/bash_completion @@ -2,6 +2,10 @@ # bash completion for Node Version Manager (NVM) +if ! nvm &> /dev/null; then + return +fi + __nvm_generate_completion() { declare current_word