mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-06-04 14:17:27 +00:00
ec3166bdc6
* Update Invoke-WinUtilInstallPSProfile.ps1 * Update Invoke-WinUtilUninstallPSProfile.ps1 * Update Invoke-WinUtilInstallPSProfile.ps1 * Update Invoke-WinUtilUninstallPSProfile.ps1
16 lines
570 B
PowerShell
16 lines
570 B
PowerShell
function Invoke-WinUtilInstallPSProfile {
|
|
if (-not (Get-Command wt)) {
|
|
Write-Host "Windows Terminal not found installing..."
|
|
Install-WinUtilWinget
|
|
winget install Microsoft.WindowsTerminal --source winget --silent
|
|
}
|
|
|
|
if (-not (Get-Command pwsh)) {
|
|
Write-Host "Powershell 7 not found installing..."
|
|
Install-WinUtilWinget
|
|
winget install Microsoft.PowerShell --source winget --silent
|
|
}
|
|
|
|
wt new-tab pwsh -NoExit -Command "irm https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1 | iex"
|
|
}
|