We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d931f9 commit d0b0883Copy full SHA for d0b0883
src/features/terminal/startup/powershellStartup.ts
@@ -28,7 +28,7 @@ async function getPowerShellProfiles(): Promise<PowerShellInfo[]> {
28
29
async function getProfileForShell(shell: 'powershell' | 'pwsh'): Promise<PowerShellInfo | undefined> {
30
try {
31
- const profilePath = await runCommand(`${shell} -Command $profile`);
+ const profilePath = await runCommand(isWindows() ? `${shell} -Command $profile`: `${shell} -Command \\$profile`);
32
if (!profilePath) {
33
traceVerbose(`${shell} is not available or failed to get profile path`);
34
return undefined;
0 commit comments