history.zsh 689 B

123456789101112131415161718
  1. ## Command history configuration
  2. HISTSIZE=10000 # Max events stored in the internal history list.
  3. SAVEHIST=10000 # Max events to save to file when interactive shell exits.
  4. HISTFILE=$HOME/.zsh_history
  5. # Show history
  6. #alias history='fc -l 1' # No timestamps
  7. alias history='fc -il 1' # timestamp "yyyy-mm-dd hh:mm"
  8. alias h='history | tail -n 100'
  9. setopt append_history
  10. setopt extended_history
  11. setopt hist_expire_dups_first
  12. setopt hist_ignore_dups # ignore duplication command history list
  13. setopt hist_ignore_space
  14. setopt inc_append_history
  15. setopt nohistverify # Don't show expansions, just execute, e.g. for !! and !$
  16. setopt nosharehistory # Don't have the same history across tabs/windows