A Better Zsh History, pt. 2

Photo by Kimon Maritz on Unsplash

Persistence

  • APPEND_HISTORY
  • INC_APPEND_HISTORY
  • SHARE_HISTORY
setopt INC_APPEND_HISTORY

Duplicates

  • HIST_IGNORE_DUPS
  • HIST_IGNORE_ALL_DUPS
  • HIST_EXPIRE_DUPS_FIRST
  • HIST_SAVE_NO_DUPS
  • HIST_FIND_NO_DUPS
# ~/.zshrcexport HISTFILE="$HOME/.cache/zsh/zsh_history"
export HISTSIZE=1000
export SAVEHIST=$HISTSIZE
setopt INC_APPEND_HISTORY
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_SAVE_NO_DUPS
setopt HIST_FIND_NO_DUPS

A few more (one for now) options

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store