aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/history.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc_src/history.txt')
-rw-r--r--doc_src/history.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc_src/history.txt b/doc_src/history.txt
index 89d2d6c6..396e4d2e 100644
--- a/doc_src/history.txt
+++ b/doc_src/history.txt
@@ -2,8 +2,8 @@
\subsection history-synopsis Synopsis
\fish{synopsis}
-history [--save|--clear|--merge]
-history [--search|--delete] [--prefix "prefix string"|--contains "search string"]
+history (--merge | --save | --clear)
+history (--search | --delete) [--prefix "prefix string" | --contains "search string"]
\endfish
\subsection history-description Description
@@ -11,9 +11,9 @@ history [--search|--delete] [--prefix "prefix string"|--contains "search string"
`history` is used to list, search and delete the history of commands used.
The following options are available:
+- `--merge` immediately incorporates history changes from other sessions. Ordinarily `fish` ignores history changes from sessions started after the current one. This command applies those changes immediately.
- `--save` saves all changes in the history file. The shell automatically saves the history file; this option is provided for internal use.
- `--clear` clears the history file. A prompt is displayed before the history is erased.
-- `--merge` immediately incorporates history changes from other sessions. Ordinarily `fish` ignores history changes from sessions started after the current one. This command applies those changes immediately.
- `--search` returns history items in keeping with the `--prefix` or `--contains` options.
- `--delete` deletes history items.
- `--prefix` searches or deletes items in the history that begin with the specified text string.