Skip to content

Instantly share code, notes, and snippets.

@pmatseykanets
Created May 2, 2022 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmatseykanets/867c40608a2b25e4e4005ef8c11954dd to your computer and use it in GitHub Desktop.
Save pmatseykanets/867c40608a2b25e4e4005ef8c11954dd to your computer and use it in GitHub Desktop.
Merge zsh histtory files
builtin fc -R -I /path/to/history/file1
...
builtin fc -R -I /path/to/history/fileN
# write the loaded history to HISTFILE
builtin fc -W "$HISTFILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment