1
0

history.zsh 632 B

123456789101112131415161718192021222324252627
  1. HISTFILE=~/.zsh_history
  2. HISTSIZE=30000
  3. SAVEHIST=25000
  4. # TODO: see this gist <https://gist.github.com/matthewmccullough/787142>
  5. # ignore duplicates (on find and on history file save)
  6. setopt HIST_FIND_NO_DUPS
  7. setopt HIST_SAVE_NO_DUPS
  8. setopt hist_reduce_blanks
  9. # shared chronological history in log
  10. setopt INC_APPEND_HISTORY
  11. # shared history across shells
  12. setopt share_history
  13. # list choices on ambiguous completion
  14. # use BASH_AUTO_LIST to require a second keypress
  15. setopt AUTO_LIST
  16. # don't list on unambiguous prefix
  17. setopt LIST_AMBIGUOUS
  18. # ^R = pattern-enabled search
  19. bindkey '^R' history-incremental-pattern-search-backward