mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-04-20 02:34:34 +10:00
16 lines
452 B
Markdown
16 lines
452 B
Markdown
---
|
|
title: "CTT PowerShell Profile - Install"
|
|
description: ""
|
|
---
|
|
|
|
```powershell {filename="functions/private/Invoke-WinUtilInstallPSProfile.ps1",linenos=inline,linenostart=1}
|
|
function Invoke-WinUtilInstallPSProfile {
|
|
|
|
if (Test-Path $Profile) {
|
|
Rename-Item $Profile -NewName ($Profile + '.bak')
|
|
}
|
|
|
|
Start-Process pwsh -ArgumentList '-Command "irm https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1 | iex"'
|
|
}
|
|
```
|