fix: correct git check to break in init.ps1
This commit is contained in:
parent
94ce23b1b8
commit
76eae16e50
6
init.ps1
6
init.ps1
|
@ -6,8 +6,7 @@
|
|||
## Make sure we have git
|
||||
if ((Get-Command -Type Application -ErrorAction SilentlyContinue git) -eq $null)
|
||||
{
|
||||
Write-Host "Please install git first"
|
||||
break
|
||||
winget install git.git -h
|
||||
}
|
||||
|
||||
## Install homepshick
|
||||
|
@ -25,5 +24,8 @@ Enable-HomepsickCastle -All -Force
|
|||
# Install Terminal-Icons Module
|
||||
Install-Module -Name Terminal-Icons -Force
|
||||
|
||||
# Install Starship (Will prompt for admin)
|
||||
winget install starship -f
|
||||
|
||||
# Init Starship
|
||||
Invoke-Expression (&starship init powershell)
|
Loading…
Reference in New Issue