Adding history builtin

This commit is contained in:
Siteshwar Vashisht
2012-06-05 09:54:42 +05:30
parent b877181e17
commit ec34f2527a
6 changed files with 316 additions and 11 deletions

36
doc_src/history.txt Normal file
View File

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