1
0
Fork 0
mirror of synced 2024-12-27 00:13:20 -05:00
zimfw/modules/history
Eric Nielsen 81a52a5d7d [history] Use fc -l instead of history
`history` is equivalent to `fc -l`, and `fc` is the actual Zsh builtin.

Add the `-n` flag to suppress event numbers when listing.
2018-12-15 08:10:29 -05:00
..
init.zsh [history] Use fc -l instead of history 2018-12-15 08:10:29 -05:00
README.md [history] Remove EXTENDED_HISTORY and INC_APPEND_HISTORY 2018-12-15 08:10:29 -05:00

history

Sets sane history options.

The history is set to be saved in the ${ZDOTDIR:-${HOME}}/.zhistory file.

Zsh options

  • BANG_HIST performs csh-style '!' expansion.
  • SHARE_HISTORY causes all terminals to share the same history 'session'.
  • HIST_IGNORE_DUPS does not enter immediate duplicates into the history.
  • HIST_IGNORE_ALL_DUPS removes older command from the history if a duplicate is to be added.
  • HIST_IGNORE_SPACE removes commands from the history that begin with a space.
  • HIST_SAVE_NO_DUPS ommits older commands that duplicate newer ones when saving.
  • HIST_VERIFY doesn't execute the command directly upon history expansion.

Aliases

  • history-stat lists the 10 most used commands