mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 09:31:16 -03:00
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:
committed by
ridiculousfish
parent
87b2c2fdec
commit
049104e8df
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user