Skip to content

Commit 94f8491

Browse files
committed
fix: generateCompletionScript function
1 parent 507b267 commit 94f8491

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

bin/cli.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,18 @@ async function main() {
6868
cli.parse();
6969
}
7070

71+
// function generateCompletionScript(packageManager: string, shell: string) {
72+
// const name = packageManager;
73+
// const executable = process.env.npm_execpath
74+
// ? `${packageManager} exec @bombsh/tab ${packageManager}`
75+
// : `node ${process.argv[1]} ${packageManager}`;
76+
// script(shell as any, name, executable);
77+
// }
78+
7179
function generateCompletionScript(packageManager: string, shell: string) {
7280
const name = packageManager;
73-
const executable = process.env.npm_execpath
74-
? `${packageManager} exec @bombsh/tab ${packageManager}`
75-
: `node ${process.argv[1]} ${packageManager}`;
81+
// this always points at the actual file on disk (TESTING)
82+
const executable = `node ${process.argv[1]} ${packageManager}`;
7683
script(shell as any, name, executable);
7784
}
7885

0 commit comments

Comments
 (0)