Skip to content

Commit

Permalink
[Fix] bash_completion should make sure nvm loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Jan 1, 2017
1 parent 7723bfa commit c6c8015
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

# bash completion for Node Version Manager (NVM)

if ! nvm &> /dev/null; then
return
fi

__nvm_generate_completion()
{
declare current_word
Expand Down

0 comments on commit c6c8015

Please sign in to comment.