File tree Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
description : PSReadLine provides an improved command-line editing experience in the PowerShell console.
3
3
Locale : en-US
4
- ms.date : 11/14/2022
5
- online version : https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline?view=powershell-7.3 &WT.mc_id=ps-gethelp
4
+ ms.date : 07/18/2023
5
+ online version : https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline?view=powershell-5.1 &WT.mc_id=ps-gethelp
6
6
schema : 2.0.0
7
7
title : about PSReadLine
8
8
---
@@ -162,6 +162,11 @@ Invoke-WebRequest -Token xxx # Expr-value as argument to '-Token'.
162
162
Get-ResultFromTwo -Secret1 (Get-Secret -Name blah -AsPlainText) -Secret2 sdv87ysdfayf798hfasd8f7ha # '-Secret2' has expr-value argument.
163
163
```
164
164
165
+ If there are other commands you don't want written to the history files, you
166
+ can use the ** AddToHistoryHandler** parameter of the ` Set-PSReadLineOption `
167
+ cmdlet. For an example of how to use ** AddToHistoryHandler** , see Example 7 of
168
+ [ Set-PSReadLineOption] ( /powershell/module/psreadline/set-psreadlineoption#example-7-use-historyhandler-to-filter-commands-added-to-history ) .
169
+
165
170
### PSReadLine release history
166
171
167
172
There have been many updates to PSReadLine since the version that ships in
Original file line number Diff line number Diff line change 1
1
---
2
2
description : PSReadLine provides an improved command-line editing experience in the PowerShell console.
3
3
Locale : en-US
4
- ms.date : 11/14/2022
4
+ ms.date : 07/18/2023
5
5
online version : https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline?view=powershell-7.2&WT.mc_id=ps-gethelp
6
6
schema : 2.0.0
7
7
title : about PSReadLine
@@ -204,6 +204,11 @@ Invoke-WebRequest -Token xxx # Expr-value as argument to '-Token'.
204
204
Get-ResultFromTwo -Secret1 (Get-Secret -Name blah -AsPlainText) -Secret2 sdv87ysdfayf798hfasd8f7ha # '-Secret2' has expr-value argument.
205
205
```
206
206
207
+ If there are other commands you don't want written to the history files, you
208
+ can use the ** AddToHistoryHandler** parameter of the ` Set-PSReadLineOption `
209
+ cmdlet. For an example of how to use ** AddToHistoryHandler** , see Example 7 of
210
+ [ Set-PSReadLineOption] ( /powershell/module/psreadline/set-psreadlineoption#example-7-use-historyhandler-to-filter-commands-added-to-history ) .
211
+
207
212
### PSReadLine release history
208
213
209
214
There have been many updates to PSReadLine since the version that ships in
Original file line number Diff line number Diff line change 1
1
---
2
2
description : PSReadLine provides an improved command-line editing experience in the PowerShell console.
3
3
Locale : en-US
4
- ms.date : 11/14/2022
4
+ ms.date : 07/18/2023
5
5
online version : https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline?view=powershell-7.3&WT.mc_id=ps-gethelp
6
6
schema : 2.0.0
7
7
title : about PSReadLine
@@ -204,6 +204,11 @@ Invoke-WebRequest -Token xxx # Expr-value as argument to '-Token'.
204
204
Get-ResultFromTwo -Secret1 (Get-Secret -Name blah -AsPlainText) -Secret2 sdv87ysdfayf798hfasd8f7ha # '-Secret2' has expr-value argument.
205
205
```
206
206
207
+ If there are other commands you don't want written to the history files, you
208
+ can use the ** AddToHistoryHandler** parameter of the ` Set-PSReadLineOption `
209
+ cmdlet. For an example of how to use ** AddToHistoryHandler** , see Example 7 of
210
+ [ Set-PSReadLineOption] ( /powershell/module/psreadline/set-psreadlineoption#example-7-use-historyhandler-to-filter-commands-added-to-history ) .
211
+
207
212
### PSReadLine release history
208
213
209
214
There have been many updates to PSReadLine since the version that ships in
Original file line number Diff line number Diff line change 1
1
---
2
2
description : PSReadLine provides an improved command-line editing experience in the PowerShell console.
3
3
Locale : en-US
4
- ms.date : 11/14/2022
4
+ ms.date : 07/18/2023
5
5
online version : https://learn.microsoft.com/powershell/module/psreadline/about/about_psreadline?view=powershell-7.4&WT.mc_id=ps-gethelp
6
6
schema : 2.0.0
7
7
title : about PSReadLine
@@ -204,6 +204,11 @@ Invoke-WebRequest -Token xxx # Expr-value as argument to '-Token'.
204
204
Get-ResultFromTwo -Secret1 (Get-Secret -Name blah -AsPlainText) -Secret2 sdv87ysdfayf798hfasd8f7ha # '-Secret2' has expr-value argument.
205
205
```
206
206
207
+ If there are other commands you don't want written to the history files, you
208
+ can use the ** AddToHistoryHandler** parameter of the ` Set-PSReadLineOption `
209
+ cmdlet. For an example of how to use ** AddToHistoryHandler** , see Example 7 of
210
+ [ Set-PSReadLineOption] ( /powershell/module/psreadline/set-psreadlineoption#example-7-use-historyhandler-to-filter-commands-added-to-history ) .
211
+
207
212
### PSReadLine release history
208
213
209
214
There have been many updates to PSReadLine since the version that ships in
You can’t perform that action at this time.
0 commit comments