Skip to content

Instantly share code, notes, and snippets.

@iricigor
Created October 28, 2018 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iricigor/d0fc2cfa5adb2d3d7877fc6ffc5de4a4 to your computer and use it in GitHub Desktop.
Save iricigor/d0fc2cfa5adb2d3d7877fc6ffc5de4a4 to your computer and use it in GitHub Desktop.
PowerShell profile settings
# PSReadLine tips from https://opensource.com/article/18/7/powershell-tips
Set-PSReadlineOption -EditMode Emacs
Set-PSReadlineOption -BellStyle None
# https://learn-powershell.net/2012/08/07/make-your-powershell-errors-less-harsh-by-changing-their-color/
$host.PrivateData.VerboseForegroundColor = 'DarkGreen'
# Work around an RS5/PSReadline-2.0.0+beta2 bug (Spacebar is not marked 'essential')
Set-PSReadlineKeyHandler "Shift+SpaceBar" -ScriptBlock {
[Microsoft.Powershell.PSConsoleReadLine]::Insert(' ')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment