Created
January 31, 2016 13:30
-
-
Save chgeuer/2443e11e51d01ac68b54 to your computer and use it in GitHub Desktop.
Globally set Ctrl-D globally to quit Powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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