history.zsh 688 B

1234567891011121314151617181920212223242526272829
  1. HISTFILE=~/.zsh_history
  2. HISTSIZE=30000
  3. SAVEHIST=25000
  4. # ignore duplicates (on find and on history file save)
  5. setopt HIST_FIND_NO_DUPS
  6. setopt HIST_SAVE_NO_DUPS
  7. setopt hist_reduce_blanks
  8. # shared chronological history in log
  9. setopt INC_APPEND_HISTORY
  10. # shared history across shells
  11. # setopt share_history
  12. # list choices on ambiguous completion
  13. # use BASH_AUTO_LIST to require a second keypress
  14. setopt AUTO_LIST
  15. # don't list on unambiguous prefix
  16. setopt LIST_AMBIGUOUS
  17. # bind to zsh-history-substring-search
  18. bindkey '^[[A' history-substring-search-up
  19. bindkey '^[[B' history-substring-search-down
  20. # ^R = pattern-enabled search
  21. bindkey '^R' history-incremental-pattern-search-backward