Skip to content

Commit 9193e17

Browse files
committed
refactor: use git-bash.exe instead of bin/bash.exe to make sure bash-profiles work (#1856)
Signed-off-by: leo <longshuang@msn.cn>
1 parent 91d769c commit 9193e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Native/Windows.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public string FindTerminal(Models.ShellOrTerminal shell)
144144
break;
145145

146146
var binDir = Path.GetDirectoryName(OS.GitExecutable)!;
147-
var bash = Path.Combine(binDir, "bash.exe");
147+
var bash = Path.GetFullPath(Path.Combine(binDir, "..", "git-bash.exe"));
148148
if (!File.Exists(bash))
149149
break;
150150

0 commit comments

Comments
 (0)