Skip to content

Commit 09f31e2

Browse files
committed
Add posh-git module expliciltly
1 parent 9d698d0 commit 09f31e2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

GitSetup.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ function CheckPowerShellVersion
3838
Write-Error "You are not running PowerShell version 5+! Please upgrade."
3939
}
4040

41-
if($PSVersionTable.PSVersion.Major -ge 7) {
42-
Get-PackageProvider -Name "NuGet" | Install-PackageProvider -Verbose -Force
43-
}
4441
Import-PackageProvider NuGet -Force
4542
}
4643

@@ -99,6 +96,7 @@ function DownloadGit
9996
Set-Alias g git # Use Git commands but just typing 'g'
10097
Set-Alias ex explorer # Open a File Explorer with 'ex .'
10198
99+
Import-Module posh-git
102100
Import-Module posh-sshell
103101
Start-Service ssh-agent
104102
"@
@@ -228,6 +226,7 @@ function SetupPoshGit
228226
$text = @"
229227
230228
# Load Posh-git
229+
Import-Module posh-git
231230
Import-Module posh-sshell
232231
233232
# Load SSH-agent with password

0 commit comments

Comments
 (0)