@@ -24,10 +24,10 @@ function Set-TiPSConfiguration
2424 Whether to automatically write a PowerShell tip at session startup.
2525 Valid values are Never, EverySession, Daily, Weekly, Biweekly, and Monthly. Default is Never.
2626
27- . PARAMETER AutomaticallyWritePowerShellTipOption
27+ . PARAMETER WritePowerShellTipCondition
2828 Controls how tips are selected when automatically showing tips.
2929 Valid values are CycleThroughTips (default) and OnlyWriteUnshownTips.
30- OnlyWriteUnshownTips will only show tips that have not been shown yet .
30+ OnlyWriteUnshownTips will only show tips that have not been shown before .
3131
3232 . PARAMETER TipRetrievalOrder
3333 The order in which to retrieve PowerShell tips.
@@ -67,7 +67,7 @@ function Set-TiPSConfiguration
6767 Set the tiPS configuration to retrieve PowerShell tips in random order.
6868
6969 . EXAMPLE
70- Set-TiPSConfiguration -AutomaticallyWritePowerShellTip Daily -AutomaticallyWritePowerShellTipOption OnlyWriteUnshownTips
70+ Set-TiPSConfiguration -AutomaticallyWritePowerShellTip Daily -WritePowerShellTipCondition OnlyWriteUnshownTips
7171
7272 Set the tiPS configuration to automatically write a PowerShell tip every day, but only if there are tips that have not been shown yet.
7373#>
@@ -86,7 +86,7 @@ function Set-TiPSConfiguration
8686 [tiPS.WritePowerShellTipCadence ] $AutomaticallyWritePowerShellTip = [tiPS.WritePowerShellTipCadence ]::Never,
8787
8888 [Parameter (Mandatory = $false , ParameterSetName = ' PartialConfiguration' , ValueFromPipelineByPropertyName = $true )]
89- [tiPS.WritePowerShellTipConditions ] $AutomaticallyWritePowerShellTipOption = [tiPS.WritePowerShellTipConditions ]::CycleThroughTips,
89+ [tiPS.WritePowerShellTipConditions ] $WritePowerShellTipCondition = [tiPS.WritePowerShellTipConditions ]::CycleThroughTips,
9090
9191 [Parameter (Mandatory = $false , ParameterSetName = ' PartialConfiguration' , ValueFromPipelineByPropertyName = $true )]
9292 [Alias (' TipOrder' )]
@@ -131,12 +131,12 @@ function Set-TiPSConfiguration
131131 }
132132 }
133133
134- # If the AutomaticallyWritePowerShellTipOption parameter is passed in, set it.
135- if ($PSBoundParameters.ContainsKey (' AutomaticallyWritePowerShellTipOption ' ))
134+ # If the WritePowerShellTipCondition parameter is passed in, set it.
135+ if ($PSBoundParameters.ContainsKey (' WritePowerShellTipCondition ' ))
136136 {
137137 if ($PSCmdlet.ShouldProcess (' tiPS configuration WritePowerShellTipCondition property' , ' Set' ))
138138 {
139- $script :TiPSConfiguration.WritePowerShellTipCondition = $AutomaticallyWritePowerShellTipOption
139+ $script :TiPSConfiguration.WritePowerShellTipCondition = $WritePowerShellTipCondition
140140 }
141141 }
142142
0 commit comments