From f574b11a2a10f4c227b55be151e49b43d7663958 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 21 Mar 2017 11:51:30 -0700 Subject: [PATCH] Run the terminal as a login shell on macOS Fixes #22971 --- .../parts/terminal/electron-browser/terminal.contribution.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminal.contribution.ts b/src/vs/workbench/parts/terminal/electron-browser/terminal.contribution.ts index 516d38c88e1..633c1ff52d9 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminal.contribution.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminal.contribution.ts @@ -64,7 +64,10 @@ configurationRegistry.registerConfiguration({ 'items': { 'type': 'string' }, - 'default': [], + // Unlike on Linux, ~/.profile is not sourced when logging into a macOS session. This + // is the reason terminals on macOS typically run login shells by default which set up + // the environment. See http://unix.stackexchange.com/a/119675/115410 + 'default': ['-l'], 'isExecutable': true }, 'terminal.integrated.shell.windows': { -- GitLab