Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Forked from matthewmccullough/.zshrc
Created January 13, 2021 09:19
Show Gist options
  • Save developer-guy/cc7cc0b3ec9c11a4c1ac9e5475156a03 to your computer and use it in GitHub Desktop.
Save developer-guy/cc7cc0b3ec9c11a4c1ac9e5475156a03 to your computer and use it in GitHub Desktop.
A configuration to maintain history across sessions and share it across terminals in ZShell
##############################################################################
# History Configuration
##############################################################################
HISTSIZE=5000 #How many lines of history to keep in memory
HISTFILE=~/.zsh_history #Where to save history to disk
SAVEHIST=5000 #Number of history entries to save to disk
#HISTDUP=erase #Erase duplicates in the history file
setopt appendhistory #Append history to the history file (no overwriting)
setopt sharehistory #Share history across terminals
setopt incappendhistory #Immediately append to the history file, not just when a term is killed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment