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:
Rory O’Kane 2017-04-05 12:16:29 -04:00 committed by Fabian Homborg
parent a4f925d822
commit 35e1d1e2d8

View File

@ -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