summaryrefslogtreecommitdiff
path: root/deps/npm/lib/commands/completion.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/commands/completion.js')
-rw-r--r--deps/npm/lib/commands/completion.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/deps/npm/lib/commands/completion.js b/deps/npm/lib/commands/completion.js
index f5604e099f..49a66627cc 100644
--- a/deps/npm/lib/commands/completion.js
+++ b/deps/npm/lib/commands/completion.js
@@ -79,12 +79,10 @@ class Completion extends BaseCommand {
})
}
- const { COMP_CWORD, COMP_LINE, COMP_POINT } = process.env
+ const { COMP_CWORD, COMP_LINE, COMP_POINT, COMP_FISH } = process.env
// if the COMP_* isn't in the env, then just dump the script.
- if (COMP_CWORD === undefined ||
- COMP_LINE === undefined ||
- COMP_POINT === undefined) {
+ if (COMP_CWORD === undefined || COMP_LINE === undefined || COMP_POINT === undefined) {
return dumpScript(resolve(this.npm.npmRoot, 'lib', 'utils', 'completion.sh'))
}
@@ -111,6 +109,7 @@ class Completion extends BaseCommand {
partialWords.push(partialWord)
const opts = {
+ isFish: COMP_FISH === 'true',
words,
w,
word,