[READ-ONLY] Mirror of https://github.com/bombshell-dev/tab. shell autocompletions for javascript CLIs
4

Configure Feed

Select the types of activity you want to include in your feed.

fix: use npx for portable completion scripts (#76)

* fix: use npx for portable completion scripts

* use npm user agent

authored by

AmirHossein Sakhravi and committed by
GitHub
(Oct 18, 2025, 5:15 PM +0330) 71782881 0a377c64

+8 -10
+5
.changeset/crazy-beds-rhyme.md
··· 1 + --- 2 + '@bomb.sh/tab': patch 3 + --- 4 + 5 + fix: use npx for portable completion scripts instead of absolute paths
+3 -10
bin/cli.ts
··· 71 71 cli.parse(); 72 72 } 73 73 74 - // function generateCompletionScript(packageManager: string, shell: string) { 75 - // const name = packageManager; 76 - // const executable = process.env.npm_execpath 77 - // ? `${packageManager} exec @bomb.sh/tab ${packageManager}` 78 - // : `node ${process.argv[1]} ${packageManager}`; 79 - // script(shell as any, name, executable); 80 - // } 81 - 82 74 function generateCompletionScript(packageManager: string, shell: string) { 83 75 const name = packageManager; 84 - // this always points at the actual file on disk (TESTING) 85 - const executable = `node ${process.argv[1]} ${packageManager}`; 76 + const executable = process.env.npm_config_user_agent 77 + ? `npx --yes @bomb.sh/tab ${packageManager}` 78 + : `node ${process.argv[1]} ${packageManager}`; 86 79 script(shell as any, name, executable); 87 80 } 88 81