Add PowerShell profile script

This commit is contained in:
Xevion
2022-04-20 19:39:09 -05:00
parent 368100fb79
commit aa72467bda
2 changed files with 16 additions and 0 deletions

View File

@@ -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" %}}
```

View File

@@ -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"