diff --git a/content/scripts/profile.md b/content/scripts/profile.md new file mode 100644 index 0000000..7fe29e8 --- /dev/null +++ b/content/scripts/profile.md @@ -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" %}} +``` \ No newline at end of file diff --git a/content/scripts/profile.ps1 b/content/scripts/profile.ps1 new file mode 100644 index 0000000..a533c6d --- /dev/null +++ b/content/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" \ No newline at end of file