mirror of
https://github.com/KiTTYsh/dotfiles.git
synced 2025-12-09 20:59:16 -05:00
pwsh: create proxy function for etsn to use SSHTransport by default
This commit is contained in:
@@ -23,3 +23,9 @@ function Update-OhMyPosh {
|
|||||||
|
|
||||||
# Set alias to vim to bypass batch file launcher, allows UNC editing
|
# Set alias to vim to bypass batch file launcher, allows UNC editing
|
||||||
Set-Alias -Name vim -Value 'C:\Program Files\Vim\vim90\vim.exe'
|
Set-Alias -Name vim -Value 'C:\Program Files\Vim\vim90\vim.exe'
|
||||||
|
|
||||||
|
# Debauchery to make Enter-PSSession do what I want it to do
|
||||||
|
$ETSN_MD = New-Object System.Management.Automation.CommandMetaData (Get-Command Microsoft.PowerShell.Core\Enter-PSSession)
|
||||||
|
$ETSN_MD.DefaultParameterSetName = "SSHHost"
|
||||||
|
"function Enter-PSSession { " + [System.Management.Automation.ProxyCommand]::Create($ETSN_MD) + " }" | Invoke-Expression
|
||||||
|
Remove-Variable ETSN_MD
|
||||||
|
|||||||
Reference in New Issue
Block a user