aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2016-05-28 14:22:16 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-05-28 14:22:16 +0200
commitffe5736abbf8644d8ab9af28e116186de62c40ea (patch)
tree3f2639969b9e5f5733be0b37910b81933325577a /doc_src
parentd79a5a315256193aef880b1f862aed677eb93c18 (diff)
History docs: Move descriptions to the corresponding options
This should clarify `--delete`s behavior without `--prefix` or `--contains` a bit. Fixes #3054.
Diffstat (limited to 'doc_src')
-rw-r--r--doc_src/history.txt9
1 files changed, 2 insertions, 7 deletions
diff --git a/doc_src/history.txt b/doc_src/history.txt
index 1bdcdf1e..fa490850 100644
--- a/doc_src/history.txt
+++ b/doc_src/history.txt
@@ -17,19 +17,14 @@ The following options are available:
- `--clear` clears the history file. A prompt is displayed before the history is erased.
-- `--search` returns history items in keeping with the `--prefix` or `--contains` options.
+- `--search` returns history items in keeping with the `--prefix` or `--contains` options. Without either, `--contains` will be assumed.
-- `--delete` deletes history items.
+- `--delete` deletes history items. Without the `--prefix` or `--contains` options, the exact match will be deleted. With either of these options, a prompt will be displayed before any items are deleted.
- `--prefix` searches or deletes items in the history that begin with the specified text string.
- `--contains` searches or deletes items in the history that contain the specified text string.
-If `--search` is specified without `--contains` or `--prefix`, `--contains` will be assumed.
-
-If `--delete` is specified without `--contains` or `--prefix`, only a history item which exactly matches the parameter will be erased. No prompt will be given. If `--delete` is specified with either of these parameters, an interactive prompt will be displayed before any items are deleted.
-
-
\subsection history-examples Example
\fish