Skip to content

Commit 1de34ba

Browse files
committed
Fix terminal opening when multiple users are connected via remote-ssh
Fixes microsoft#157611
1 parent d00804e commit 1de34ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export function getShellIntegrationInjection(
184184
newArgs = [...newArgs]; // Shallow clone the array to avoid setting the default array
185185
newArgs[newArgs.length - 1] = format(newArgs[newArgs.length - 1], appRoot);
186186
// Move .zshrc into $ZDOTDIR as the way to activate the script
187-
const zdotdir = path.join(os.tmpdir(), 'vscode-zsh');
187+
const zdotdir = path.join(os.tmpdir(), `${os.userInfo().username}-vscode-zsh`);
188188
envMixin['ZDOTDIR'] = zdotdir;
189189
const filesToCopy: IShellIntegrationConfigInjection['filesToCopy'] = [];
190190
filesToCopy.push({

0 commit comments

Comments
 (0)