Skip to content

Commit 14fdae6

Browse files
authored
fix: alias loading on windows (#339)
* fix: alias loading on windows Signed-off-by: Chapman Pendery <[email protected]> * fix: style Signed-off-by: Chapman Pendery <[email protected]> --------- Signed-off-by: Chapman Pendery <[email protected]>
1 parent aca796a commit 14fdae6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/runtime/alias.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ const executeShellCommand = await buildExecuteShellCommand(5_000);
1313

1414
const loadBashAliases = async () => {
1515
const shellTarget = platform == "win32" ? await gitBashPath() : Shell.Bash;
16-
const { stdout, stderr, status } = await executeShellCommand({ command: shellTarget, args: ["-i", "-c", "alias"], cwd: process.cwd(), env: { ISTERM: "1" } });
16+
const { stdout, stderr, status } = await executeShellCommand({
17+
command: `'${shellTarget}'`,
18+
args: ["-i", "-c", "alias"],
19+
cwd: process.cwd(),
20+
env: { ISTERM: "1" },
21+
});
1722
if (status !== 0) {
1823
log.debug({ msg: "failed to load bash aliases", stderr, status });
1924
return;

0 commit comments

Comments
 (0)