PowerShell profile
Setup
What's the path to my profile script?
echo $profileDoes it exist?
Test-Path $profileCreate it:
New-Item -Path $profile -Type "file" -ForceInspect it:
Get-Content -Path $profile
Contents
Enable <Ctrl>+D exit:
Set-PSReadlineKeyHandler -Key Ctrl+d -Function DeleteCharOrExit(
Add-Content -Path $profile -Value "Set-PSReadlineKeyHandler -Key Ctrl+d -Function DeleteCharOrExit`r`n")