Skip to content

Commit d0b0883

Browse files
committed
fix: powershell startup on posix
1 parent 1d931f9 commit d0b0883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/terminal/startup/powershellStartup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function getPowerShellProfiles(): Promise<PowerShellInfo[]> {
2828

2929
async function getProfileForShell(shell: 'powershell' | 'pwsh'): Promise<PowerShellInfo | undefined> {
3030
try {
31-
const profilePath = await runCommand(`${shell} -Command $profile`);
31+
const profilePath = await runCommand(isWindows() ? `${shell} -Command $profile`: `${shell} -Command \\$profile`);
3232
if (!profilePath) {
3333
traceVerbose(`${shell} is not available or failed to get profile path`);
3434
return undefined;

0 commit comments

Comments
 (0)