Skip to content

Instantly share code, notes, and snippets.

@filviu
Last active November 2, 2021 11:50
Show Gist options
  • Save filviu/1945d80d4cdaafdda8bc1bb82b78baf3 to your computer and use it in GitHub Desktop.
Save filviu/1945d80d4cdaafdda8bc1bb82b78baf3 to your computer and use it in GitHub Desktop.
Powershell CTRL+D to exit terminal.

You need to run

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

in an Administrator PowerShell terminal.

# drop in Documents\WindowsPowerShell
# Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Set-PSReadlineKeyHandler -Key ctrl+d -Function ViExit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment