Related Itmes: History Expansion

Options

APPEND_HISTORY
When turned on, causes each zsh session, upon exiting, to append to the history file. (As opposed to writing to it.) This allows multiple paralell zsh sessions to share a common history file.

BANG_HIST
Enable history substitutions

EXTENDED_HISTORY
Save beginning and ending timestamps to the history file. The format of these timestamps is :%<beginning time%>:%<ending time%>:%<command%>

HIST_ALLOW_CLOBBER
Add `|' to all output redirections in the history. This allows history references to clobber files even when the CLOBBER option is unset.

HIST_BEEP
Beep when the user tries to referrence a history event that doesn't exist.

HIST_IGNORE_DUPS (-h)
Do not enter command lines into the history list if they are duplicates of the previous event.

HIST_IGNORE_SPACE (-g)
Do not enter command lines into the history list if any command on the line begins with a blank.

HIST_NO_FUNCTIONS
Do not store function definitions in the history list.

HIST_NO_STORE
Remove the history (fc -l) command from the history when invoked.

HIST_REDUCE_BLANKS
Remove superfluous blanks from each command line being added to the history list.

HIST_VERIFY
Whenever the user enters a line containing a history substitution, don't execute the line immediately. Instead, perform history substitution and reload the line into the editing buffer.

Related Parameters

histchars
The three characters used by the shell's history and lexical analysis mechanism. The first character signals the start of a history substitution (default `!'). The second character signals the start of a quick history substitution (default `^'). The third character is the comment character (default `#').

HISTFILE
The file to save the history in when an interactive shell exits. If unset, the history is not saved.

HISTSIZE
The maximum size of the history list.

SAVEHIST
The maximum number of history events to save in the history file.