Skip to content

Commit 98d8dbb

Browse files
committed
use npm user agent
1 parent 111887b commit 98d8dbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async function main() {
7373

7474
function generateCompletionScript(packageManager: string, shell: string) {
7575
const name = packageManager;
76-
const executable = process.env.npm_execpath
76+
const executable = process.env.npm_config_user_agent
7777
? `npx --yes @bomb.sh/tab ${packageManager}`
7878
: `node ${process.argv[1]} ${packageManager}`;
7979
script(shell as any, name, executable);

0 commit comments

Comments
 (0)