Skip to content

Commit 4c75362

Browse files
committed
Use CHERE_INVOKING in msys2 profile
Fixes microsoft#204167
1 parent c535f3d commit 4c75362

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/platform/terminal/node/terminalProfiles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ async function detectAvailableWindowsProfiles(
127127
{ path: `${process.env['HOMEDRIVE']}\\msys64\\usr\\bin\\bash.exe`, isUnsafe: true },
128128
],
129129
args: ['--login', '-i'],
130+
// CHERE_INVOKING retains current working directory
131+
env: { CHERE_INVOKING: '1' },
130132
icon: Codicon.terminalBash,
131133
isAutoDetected: true
132134
});

0 commit comments

Comments
 (0)