From 83476386b050c9b4103fd88871f8f9d686fd697c Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Tue, 15 Dec 2015 02:45:18 -0500 Subject: [PATCH] add history documentation --- modules/history/README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 modules/history/README.md diff --git a/modules/history/README.md b/modules/history/README.md new file mode 100644 index 0000000..46e5312 --- /dev/null +++ b/modules/history/README.md @@ -0,0 +1,28 @@ +History +======= + +Sets sane default history options. + +History file is set to save in `${ZDOTDIR:-$HOME}/.zhistory` + +(most likely ~/.zhistory) + +Zsh Options +----------- + +| Option | Effect | +| ------ | ------ | +| BANG_HIST | Use csh-style '!' expansion | +| EXTENDED_HISTORY | Save timestamps along with commands | +| INC_APPEND_HISTORY | Commands are added to the history file immediately upon execution | +| SHARE_HISTORY | Causes all terminals to share the same history 'session' | +| HIST_IGNORE_DUPS | Do not enter immediate duplicates into history | +| HIST_IGNORE_ALL_DUPS | If duplicate is to be added, remove older instance in history | +| HIST_IGNORE_SPACE | Do not add any commands to history that begin with a space | +| HIST_SAVE_NO_DUPS | When saving, older commands that duplicate newer commands are omitted | +| HIST_VERIFY | Upon history 'selection', don't execute immediately. Require a carriage return | + +Aliases +------- + + * `history-stat` lists the 10 most used commands