mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 04:54:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# Clear-History
|
||||
|
||||
> A powershell command to clear the entries in the current session.
|
||||
> Delete entries from the PowerShell session command history.
|
||||
> Note: `clhy` can be used as an alias for `Clear-History`.
|
||||
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/clear-history>.
|
||||
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Clear multiple commands by name:
|
||||
|
||||
`Clear-History -CommandLine "{{command_1}}", "{{command_2}}"`
|
||||
`Clear-History -CommandLine {{"command1", "command2", ...}}`
|
||||
|
||||
- Clear a specific history entry by ID:
|
||||
|
||||
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Clear multiple IDs:
|
||||
|
||||
`Clear-History -Id {{id_1}}, {{id_2}}, {{id_3}}`
|
||||
`Clear-History -Id {{id1, id2, ...}}`
|
||||
|
||||
- Clear commands within a range of IDs:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user