Search notes:

PowerShell cmdLet Set-PSReadLineOption

List of options

-EditMode A member of the Microsoft.PowerShell.EditMode enumeration
-ContinuationPrompt <String>
-HistoryNoDuplicates
-AddToHistoryHandler <System.Func`2[System.String,System.Object>]
-CommandValidationHandler <System.Action`1[System.Management.Automation.Language.CommandAst>]
-HistorySearchCursorMovesToEnd
-MaximumHistoryCount <Int32>
-MaximumKillRingCount <Int32>
-ShowToolTips <C-->-
-ExtraPromptLineCount <Int32>
-DingTone <Int32> See also -DingDuration and -BellStyle
-DingDuration <Int32> See also -DingTone and -BellStyle
-BellStyle A member of the Microsoft.PowerShell.Bellstyle enumeration See also -DingTone and -DingDuration
-CompletionQueryItems <Int32>
-WordDelimiters <String>
-HistorySearchCaseSensitive
-HistorySaveStyle <HistorySaveStyle>
-HistorySavePath <String>
-AnsiEscapeTimeout <Int32>
-PromptText An array of strings
-ViModeIndicator Microsoft.PowerShell.ViModeStyle
-ViModeChangeHandler A script block
-PredictionSource A member of the Microsoft.PowerShell.PredictionSource enumeration PowerShell Core only?
-PredictionViewStyle <PredictionViewStyle> ?
-Colors A hash table

Set a value of an option

PS C:\> set-psReadLineOption -editMode vi

Boolean like options

showToolTips is a boolean like option. This option can be set like so:
PS C:\> set-psReadLineOption -showToolTips
In order to turn it off, the $false needs to be appended after a colon which is appended to the parameter name:
PS C:\> set-psReadLineOption -showToolTips:$false

Colors

It is possible to define colors for different token types in PowerShell with the -colors option which requires a hash table.
The color itself can be stated with ANSI escape sequences or the System.ConsoleColor enumeration or an ANSI escape sequence.
set-psReadLineOption -colors @{
   operator = 
      "$([char]27)[38;2;255;127;0m"    +  # forground  color: orange
      "$([char]27)[48;2;100;120;130m";    # background color: grey
   number   = 'darkGreen'            ;
   variable = [ConsoleColor]::Yellow
}

See also

Powershell command noun: psReadLineOption

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758194178, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/command-inventory/noun/psReadLineOption/set(97): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78