mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-06 06:38:31 +00:00
Change WinUtilInstallPSProfile to use pwsh (#3998)
* Update Invoke-WinUtilInstallPSProfile.ps1 * Update Invoke-WinUtilInstallPSProfile.ps1 * Update Invoke-WinUtilInstallPSProfile.ps1 * Update Invoke-WinUtilInstallPSProfile.ps1 * Update Invoke-WinUtilInstallPSProfile.ps1 * Mention that ps profile is pwsh only
This commit is contained in:
@@ -272,7 +272,7 @@
|
|||||||
},
|
},
|
||||||
"WPFWinUtilInstallPSProfile": {
|
"WPFWinUtilInstallPSProfile": {
|
||||||
"Content": "Install CTT PowerShell Profile",
|
"Content": "Install CTT PowerShell Profile",
|
||||||
"category": "Powershell Profile",
|
"category": "Powershell Profile Powershell 7+ Only",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Order": "a083_",
|
"Order": "a083_",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
@@ -280,7 +280,7 @@
|
|||||||
},
|
},
|
||||||
"WPFWinUtilUninstallPSProfile": {
|
"WPFWinUtilUninstallPSProfile": {
|
||||||
"Content": "Uninstall CTT PowerShell Profile",
|
"Content": "Uninstall CTT PowerShell Profile",
|
||||||
"category": "Powershell Profile",
|
"category": "Powershell Profile Powershell 7+ Only",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Order": "a084_",
|
"Order": "a084_",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ function Invoke-WinUtilInstallPSProfile {
|
|||||||
Rename-Item $Profile -NewName ($Profile + '.bak')
|
Rename-Item $Profile -NewName ($Profile + '.bak')
|
||||||
}
|
}
|
||||||
|
|
||||||
Start-Process powershell -ArgumentList '-Command "irm https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1 | iex"'
|
Start-Process pwsh -ArgumentList '-Command "irm https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1 | iex"'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user