mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-06 06:38:31 +00:00
16 lines
450 B
Markdown
16 lines
450 B
Markdown
---
|
|
title: "Install CTT PowerShell Profile"
|
|
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"'
|
|
}
|
|
```
|