Skip to content

Commit e8372be

Browse files
[Fix] bash_completion should make sure nvm loaded
1 parent afcc781 commit e8372be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bash_completion

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# bash completion for Node Version Manager (NVM)
44

5+
if ! nvm &> /dev/null; then
6+
return
7+
fi
8+
59
__nvm_generate_completion()
610
{
711
declare current_word

0 commit comments

Comments
 (0)