File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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+
7179function 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
You can’t perform that action at this time.
0 commit comments