mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 03:51:20 -03: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:
committed by
Fabian Homborg
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
|
||||
|
||||
\fish
|
||||
history --clear
|
||||
history clear
|
||||
# Deletes all history items
|
||||
|
||||
history --search --contains "foo"
|
||||
history search --contains "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.
|
||||
# You can select more than one entry by entering their IDs seperated by a space.
|
||||
\endfish
|
||||
|
||||
Reference in New Issue
Block a user