Adds sub-command clear-session to history command.

Issue #5791
This clears all history for the current session. Documentation and
autocompletion for the new subcommand is added.
This commit is contained in:
Erik Serrander
2021-10-17 19:27:46 -07:00
committed by ridiculousfish
parent 87b2c2fdec
commit 049104e8df
8 changed files with 95 additions and 11 deletions

View File

@@ -13,6 +13,7 @@ Synopsis
history merge
history save
history clear
history clear-session
history ( -h | --help )
Description
@@ -32,6 +33,8 @@ The following operations (sub-commands) are available:
- ``clear`` clears the history file. A prompt is displayed before the history is erased asking you to confirm you really want to clear all history unless ``builtin history`` is used.
- ``clear-session`` clears the history file from all activity of the current session. Note: If ``history merge`` or ``builtin history merge`` is run in a session only the history after this will be erased.
The following options are available:
These flags can appear before or immediately after one of the sub-commands listed above.