Skip to content

Commit 18eaabf

Browse files
[Fix] bash_completion should make sure nvm loaded
1 parent 2bc0137 commit 18eaabf

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)