Skip to content

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

completions/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ bashcomp_DATA = 2to3 \
299299
nslookup \
300300
nsupdate \
301301
ntpdate \
302+
_nvm \
302303
oggdec \
303304
openssl \
304305
opera \

completions/_nvm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# 3rd party completion loader for nvm -*- shell-script -*-
2+
#
3+
# This serves as a fallback in case the completion is not installed otherwise.
4+
5+
# shellcheck disable=SC1091
6+
[[ ${NVM_DIR-} && -r $NVM_DIR/bash_completion ]] && . "$NVM_DIR"/bash_completion
7+
8+
# ex: filetype=sh

test/fallback/completions/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ EXTRA_DIST = \
2424
newgrp \
2525
nmcli \
2626
nox \
27+
nvm \
2728
pip \
2829
pipenv \
2930
renice \

test/fallback/completions/nvm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../completions/_nvm

0 commit comments

Comments
 (0)