1
0

history.zsh 763 B

1234567891011121314151617181920212223242526272829303132
  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. # bind to zsh-history-substring-search
  19. bindkey '^[[A' history-substring-search-up
  20. bindkey '^[[B' history-substring-search-down
  21. # ^R = pattern-enabled search
  22. bindkey '^R' history-incremental-pattern-search-backward