From d0f378764f597018a36204345a0915e06e7e3ac2 Mon Sep 17 00:00:00 2001 From: Sebastian Staudt Date: Mon, 7 Aug 2017 10:07:07 +0200 Subject: [PATCH] Start an interactive logon shell for Git Bash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provide additional arguments to `bash.exe` to get an interactive login shell. This ensures e.g. `.profile` and `.bash_profile` are sourced. As there’s no way to have an existing session under Windows, `--login` is mandatory. Each bash session must be started from scratch. Fixes #105 --- terminus-terminal/src/shells/gitBash.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/terminus-terminal/src/shells/gitBash.ts b/terminus-terminal/src/shells/gitBash.ts index cfdecc38..6e7d2917 100644 --- a/terminus-terminal/src/shells/gitBash.ts +++ b/terminus-terminal/src/shells/gitBash.ts @@ -41,6 +41,7 @@ export class GitBashShellProvider extends ShellProvider { id: 'git-bash', name: 'Git-Bash', command: path.join(gitBashPath, 'bin', 'bash.exe'), + args: [ '--login', '-i' ], env: { TERM: 'cygwin', }