Get-PSReadLineOption

구성할 수 있는 옵션의 값을 가져옵니다.

Syntax

Get-PSReadLineOption []

Description

cmdlet은 Get-PSReadLineOption cmdlet을 사용하여 Set-PSReadLineOption 구성할 수 있는 설정의 현재 상태를 반환합니다. 반환된 개체를 사용하여 PSReadLine 옵션을 변경할 수 있습니다. 이렇게 하면 여러 종류의 토큰에 대한 구문 색 지정 옵션을 약간 더 간단하게 설정할 수 있습니다.

예제

예제 1: 옵션 및 해당 값 가져오기

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"

이 명령은 사용 가능한 PSReadLine 옵션 목록과 현재 값을 반환합니다.

입력

None

개체를 이 cmdlet으로 파이프할 수 없습니다.

출력

PSConsoleReadLineOptions

이 cmdlet은 현재 옵션의 인스턴스를 반환합니다. 이 개체의 속성 값을 변경하면 PSReadLine의 설정이 호출되지 않고 직접 업데이트됩니다 Set-PSReadLineOption.