Get-PSReadLineOption

Ottiene i valori per le opzioni che è possibile configurare.

Sintassi

Get-PSReadLineOption []

Descrizione

Il Get-PSReadLineOption cmdlet restituisce lo stato corrente delle impostazioni che possono essere configurate usando il Set-PSReadLineOption cmdlet . È possibile utilizzare l'oggetto restituito per modificare le opzioni di PSReadLine . In questo modo è possibile impostare opzioni di colorazione della sintassi leggermente più semplici per più tipi di token.

Esempio

Esempio 1: Ottenere le opzioni e i relativi valori

Get-PSReadLineOption

EditMode                               : Windows
AddToHistoryHandler                    : System.Func`2[System.String,System.Object]
HistoryNoDuplicates                    : True
HistorySavePath                        : C:\Users\user1\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt
HistorySaveStyle                       : SaveIncrementally
HistorySearchCaseSensitive             : False
HistorySearchCursorMovesToEnd          : False
MaximumHistoryCount                    : 4096
ContinuationPrompt                     : >>
ExtraPromptLineCount                   : 0
PromptText                             : {> }
BellStyle                              : Audible
DingDuration                           : 50
DingTone                               : 1221
CommandsToValidateScriptBlockArguments : {ForEach-Object, %, Invoke-Command, icm…}
CommandValidationHandler               :
CompletionQueryItems                   : 100
MaximumKillRingCount                   : 10
ShowToolTips                           : True
ViModeIndicator                        : None
WordDelimiters                         : ;:,.[]{}()/\|!?^&*-=+'"-—―
AnsiEscapeTimeout                      : 100
PredictionSource                       : HistoryAndPlugin
PredictionViewStyle                    : InlineView
TerminateOrphanedConsoleApps           : False
CommandColor                           : "`e[93m"
CommentColor                           : "`e[32m"
ContinuationPromptColor                : "`e[37m"
DefaultTokenColor                      : "`e[37m"
EmphasisColor                          : "`e[96m"
ErrorColor                             : "`e[91m"
InlinePredictionColor                  : "`e[97;2;3m"
KeywordColor                           : "`e[92m"
ListPredictionColor                    : "`e[33m"
ListPredictionSelectedColor            : "`e[48;5;238m"
ListPredictionTooltipColor             : "`e[97;2;3m"
MemberColor                            : "`e[37m"
NumberColor                            : "`e[97m"
OperatorColor                          : "`e[90m"
ParameterColor                         : "`e[90m"
SelectionColor                         : "`e[30;47m"
StringColor                            : "`e[36m"
TypeColor                              : "`e[37m"
VariableColor                          : "`e[92m"

Questo comando restituisce l'elenco delle opzioni PSReadLine disponibili e i relativi valori correnti.

Input

None

Non è possibile inviare tramite pipe oggetti a questo cmdlet.

Output

PSConsoleReadLineOptions

Questo cmdlet restituisce un'istanza delle opzioni correnti. La modifica dei valori delle proprietà di questo oggetto aggiorna le impostazioni in PSReadLine direttamente senza richiamare Set-PSReadLineOption.