8000 Try harder to find GithubShell and SSH · markfields/WindowsPowerShell@c7c0536 · GitHub
[go: up one dir, main page]

Skip to content

Commit c7c0536

Browse files
committed
Try harder to find GithubShell and SSH
1 parent 04d6f26 commit c7c0536

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/Git/Git.psm1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ Param()
77
.DESCRIPTION
88
Sets up the proper PATH and ENV to use GitHub for Window's shell environment
99
#>
10-
if (!(Get-Command "git.exe" -ErrorAction SilentlyContinue))
10+
if ((!(Get-Command "git.exe" -ErrorAction SilentlyContinue) -or
11+
!(Get-Command "ssh.exe" -ErrorAction SilentlyContinue)) -and
12+
(Test-Path "$env:LOCALAPPDATA\GitHub\shell.ps1"))
1113
{
1214
if ($env:github_shell -eq $null)
1315
{

0 commit comments

Comments
 (0)
0