diff --git a/terminus-terminal/src/shells/gitBash.ts b/terminus-terminal/src/shells/gitBash.ts index 31e4a313..43f2995d 100644 --- a/terminus-terminal/src/shells/gitBash.ts +++ b/terminus-terminal/src/shells/gitBash.ts @@ -33,6 +33,19 @@ export class GitBashShellProvider extends ShellProvider { }) }) + if (!gitBashPath) { + gitBashPath = await new Promise(resolve => { + let reg = new Registry({ hive: Registry.HKCU, key: '\\Software\\GitForWindows' }) + reg.get('InstallPath', (err, item) => { + if (err || !item) { + resolve(null) + return + } + resolve(item.value) + }) + }) + } + if (!gitBashPath) { return [] }