mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08:00
Fix deprecated flags in history
example in docs
Update the Example section in the documentation for the `history` command so that it uses the subcommands instead of the deprecated long options.
This commit is contained in:
parent
a4f925d822
commit
35e1d1e2d8
|
@ -49,13 +49,13 @@ These flags can appear before or immediately after one of the sub-commands liste
|
||||||
\subsection history-examples Example
|
\subsection history-examples Example
|
||||||
|
|
||||||
\fish
|
\fish
|
||||||
history --clear
|
history clear
|
||||||
# Deletes all history items
|
# Deletes all history items
|
||||||
|
|
||||||
history --search --contains "foo"
|
history search --contains "foo"
|
||||||
# Outputs a list of all previous commands containing the string "foo".
|
# Outputs a list of all previous commands containing the string "foo".
|
||||||
|
|
||||||
history --delete --prefix "foo"
|
history delete --prefix "foo"
|
||||||
# Interactively deletes commands which start with "foo" from the history.
|
# Interactively deletes commands which start with "foo" from the history.
|
||||||
# You can select more than one entry by entering their IDs seperated by a space.
|
# You can select more than one entry by entering their IDs seperated by a space.
|
||||||
\endfish
|
\endfish
|
||||||
|
|
Loading…
Reference in New Issue
Block a user