mirror of
https://github.com/Xevion/powershell.git
synced 2025-12-07 07:15:52 -06:00
Add PowerShell profile script
This commit is contained in:
11
content/scripts/profile.md
Normal file
11
content/scripts/profile.md
Normal 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" %}}
|
||||||
|
```
|
||||||
5
content/scripts/profile.ps1
Normal file
5
content/scripts/profile.ps1
Normal 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"
|
||||||
Reference in New Issue
Block a user