Skip to content

Commit

Permalink
support default $ZDOTDIR in .zshenv (#160928)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Sep 15, 2022
1 parent 8234e49 commit 7409f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/platform/terminal/node/terminalEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export function getShellIntegrationInjection(
// Move .zshrc into $ZDOTDIR as the way to activate the script
const zdotdir = path.join(os.tmpdir(), `${os.userInfo().username}-vscode-zsh`);
envMixin['ZDOTDIR'] = zdotdir;
const userZdotdir = env?.ZDOTDIR ?? os.homedir();
const userZdotdir = env?.ZDOTDIR ?? os.homedir() ?? `~`;
envMixin['USER_ZDOTDIR'] = userZdotdir;
const filesToCopy: IShellIntegrationConfigInjection['filesToCopy'] = [];
filesToCopy.push({
Expand Down

0 comments on commit 7409f0d

Please sign in to comment.