mirror of
https://github.com/Xevion/powershell.git
synced 2026-01-31 10:25:15 -06:00
Add PowerShell profile script
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
+++
|
||||||
|
title = "PowerShell Personal Profile"
|
||||||
|
summary = "My personal PowerShell profile."
|
||||||
|
date = 2022-04-20
|
||||||
|
+++
|
||||||
|
|
||||||
|
Raw file available at {{% absolute_url "./scripts/profile.ps1" %}}
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
{{% file "/scripts/profile.ps1" %}}
|
||||||
|
```
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
Function Start-WindowsTerminalAsAdmin {
|
||||||
|
Start-Process wt -Verb runas -ArgumentList "-d ."
|
||||||
|
}
|
||||||
|
|
||||||
|
Set-Alias -Name wta -Value Start-WindowsTerminalAsAdmin -Description "Starts Windows Terminal as Administrator in the current directory"
|
||||||
Reference in New Issue
Block a user