diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-06-05 09:54:42 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-06-05 09:54:42 +0530 |
commit | ec34f2527a2c6738437a3339c490a9849c185247 (patch) | |
tree | 46fbe890eac6c277a120c2bafe1929716750a160 /doc_src/history.txt | |
parent | b877181e172d04b90823412cb6e005b40608777d (diff) |
Adding history builtin
Diffstat (limited to 'doc_src/history.txt')
-rw-r--r-- | doc_src/history.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/doc_src/history.txt b/doc_src/history.txt new file mode 100644 index 00000000..fc6dd13b --- /dev/null +++ b/doc_src/history.txt @@ -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> |