Created
October 28, 2018 10:33
-
-
Save iricigor/d0fc2cfa5adb2d3d7877fc6ffc5de4a4 to your computer and use it in GitHub Desktop.
PowerShell profile settings
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
# 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