Browse Source

shorten windowtitle of fsh to just the computername

master
lub 6 months ago
parent
commit
d31d612e78
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      profile.ps1

+ 2
- 4
profile.ps1 View File

@@ -40,12 +40,10 @@ function Get-BetterADUser {
}
function fsh {
param (
[string]$ComputerName,
[pscredential]$Credential
[string]$ComputerName
)

$usr = ($Credential.UserName -split '@')[0]
$host.UI.RawUI.WindowTitle = '{0}@{1}' -f $usr,$ComputerName
$host.UI.RawUI.WindowTitle = $ComputerName

Enter-PSSession @PSBoundParameters @args
}


Loading…
Cancel
Save