Skip to content

Instantly share code, notes, and snippets.

@chgeuer
Created January 31, 2016 13:30
Show Gist options
  • Save chgeuer/2443e11e51d01ac68b54 to your computer and use it in GitHub Desktop.
Save chgeuer/2443e11e51d01ac68b54 to your computer and use it in GitHub Desktop.
Globally set Ctrl-D globally to quit Powershell
@REM Globally set Ctrl-D globally to quit Powershell
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -Command "Add-Content $PsHome\Profile.ps1 \"`r`nSet-PSReadlineKeyHandler -Key Ctrl+d -Function DeleteCharOrExit`r`n\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment