-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into speedup-pyenv-virtualenv-prompt
- Loading branch information
Showing
2 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
#!/usr/bin/env zsh | ||
|
||
setopt share_history | ||
setopt append_history | ||
setopt inc_append_history | ||
setopt hist_no_store | ||
setopt hist_ignore_all_dups | ||
setopt hist_ignore_dups | ||
|
||
export HISTFILE=${HISTFILE:-$HOME}/.zsh_history | ||
# Copy from https://github.com/sorin-ionescu/prezto/blob/master/modules/history/init.zsh#L9-L23 | ||
|
||
# | ||
# Options | ||
# | ||
|
||
setopt BANG_HIST # Treat the '!' character specially during expansion. | ||
setopt EXTENDED_HISTORY # Write the history file in the ':start:elapsed;command' format. | ||
setopt SHARE_HISTORY # Share history between all sessions. | ||
setopt HIST_EXPIRE_DUPS_FIRST # Expire a duplicate event first when trimming history. | ||
setopt HIST_IGNORE_DUPS # Do not record an event that was just recorded again. | ||
setopt HIST_IGNORE_ALL_DUPS # Delete an old recorded event if a new event is a duplicate. | ||
setopt HIST_FIND_NO_DUPS # Do not display a previously found event. | ||
setopt HIST_IGNORE_SPACE # Do not record an event starting with a space. | ||
setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history file. | ||
setopt HIST_VERIFY # Do not execute immediately upon history expansion. | ||
setopt HIST_BEEP # Beep when accessing non-existent history. | ||
|
||
export HISTFILE=${HOME}/.zsh_history | ||
export HISTSIZE=10000 | ||
export SAVEHIST=10000 |