28 lines
607 B
Bash
28 lines
607 B
Bash
#!/bin/zsh
|
|
|
|
### Set ZSH History defaults
|
|
|
|
# set some history options
|
|
setopt append_history
|
|
setopt extended_history
|
|
setopt hist_expire_dups_first
|
|
setopt hist_ignore_all_dups
|
|
setopt hist_ignore_dups
|
|
setopt hist_ignore_space
|
|
setopt hist_reduce_blanks
|
|
setopt hist_save_no_dups
|
|
setopt hist_verify
|
|
|
|
# Share your history across all your terminal windows
|
|
setopt share_history
|
|
#setopt noclobber
|
|
|
|
# set some more options
|
|
setopt pushd_ignore_dups
|
|
#setopt pushd_silent
|
|
|
|
# Keep a ton of history.
|
|
export HISTSIZE=100000
|
|
export SAVEHIST=100000
|
|
HISTFILE=~/.zsh_history
|
|
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
|