Created
October 30, 2020 23:09
-
-
Save alexandair/09e4ec3d90ccc23a6e8eea1bda4f24e9 to your computer and use it in GitHub Desktop.
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
$options = @{ | |
AddToHistoryHandler = { | |
param( [string]$line) | |
return $line.Length -gt 3 -and $line[0] -ne ' ' -and $line[0] -ne ';' | |
} | |
} | |
Set-PSReadLineOption @options |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add-Type
version:Probably slower startup time than the
ILAssembler
method, but for sure easier to read.