| 1 | function Start-V2ray { |
| 2 | & "D:\v2ray\v2ray.exe" run -c "D:\v2ray\config.json" |
| 3 | } |
| 4 | Set-Alias v2 Start-V2ray |
| 5 | |
| 6 | function Start-Hy { |
| 7 | param ( |
| 8 | [Parameter(ValueFromRemainingArguments = $true)] |
| 9 | [string[]]$Args |
| 10 | ) |
| 11 | $hyPath = "D:\bin\hysteria.exe" |
| 12 | $defaultConfig = "D:\bin\hysteria.yml" |
| 13 | |
| 14 | if ($Args.Count -eq 0) { |
| 15 | & $hyPath -l debug -c $defaultConfig |
| 16 | } else { |
| 17 | & $hyPath @Args |
| 18 | } |
| 19 | } |
| 20 | Set-Alias hy Start-Hy |
zyppe / Microsoft.PowerShell_profile.ps1
Last active 5 months ago
Revision e0267f86a000caa6aeaba8c3bc33d72021ce2ebd