fish-shell/doc_src/history.txt

37 lines
869 B
Text
Raw Normal View History

2012-06-05 04:24:42 +00:00
\section history history - Show and manipulate user's command history
\subsection history-synopsis Synopsis
<pre>
history (--save | --clear)
history (--search | --delete ) (--prefix "prefix string" | --contains "search string")
2012-06-05 04:24:42 +00:00
</pre>
\subsection history-description Description
history is used to list, search and delete user's command history
2012-06-05 04:24:42 +00:00
\subsection history-examples Example
<pre>
history --save
Save all changes in history file
2012-06-05 04:24:42 +00:00
history --clear
Delete all history items
2012-06-05 04:24:42 +00:00
history --search --contains "foo"
Searches commands containing "foo" string
2012-06-05 04:24:42 +00:00
history --search --prefix "foo"
Searches for commands with prefix "foo"
2012-06-05 04:24:42 +00:00
history --delete --contains "foo"
Interactively delete commands containing string "foo"
2012-06-05 04:24:42 +00:00
history --delete --prefix "foo"
Interactively delete commands with prefix "foo"
2012-06-05 04:24:42 +00:00
history --delete "foo"
Delete command "foo" from history
</pre>