]> git.r.bdr.sh - rbdr/dotfiles/blame_incremental - zsh/modules/history.zsh
Remove blinking and reattach-to-user-namespace
[rbdr/dotfiles] / zsh / modules / history.zsh
... / ...
CommitLineData
1#
2# Sets history options and defines history aliases.
3#
4# Authors:
5# Robby Russell <robby@planetargon.com>
6# Sorin Ionescu <sorin.ionescu@gmail.com>
7#
8
9#
10# Variables
11#
12
13HISTFILE="${ZDOTDIR:-$HOME}/.zhistory" # The path to the history file.
14HISTSIZE=10000 # The maximum number of events to save in the internal history.
15SAVEHIST=10000 # The maximum number of events to save in the history file.
16
17#
18# Options
19#
20
21setopt BANG_HIST # Treat the '!' character specially during expansion.
22setopt EXTENDED_HISTORY # Write the history file in the ':start:elapsed;command' format.
23setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
24setopt SHARE_HISTORY # Share history between all sessions.
25setopt HIST_EXPIRE_DUPS_FIRST # Expire a duplicate event first when trimming history.
26setopt HIST_IGNORE_DUPS # Do not record an event that was just recorded again.
27setopt HIST_IGNORE_ALL_DUPS # Delete an old recorded event if a new event is a duplicate.
28setopt HIST_FIND_NO_DUPS # Do not display a previously found event.
29setopt HIST_IGNORE_SPACE # Do not record an event starting with a space.
30setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history file.
31setopt HIST_VERIFY # Do not execute immediately upon history expansion.
32setopt HIST_BEEP # Beep when accessing non-existent history.