mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 04:58:57 +00: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
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue