A tool to sync ZSH shell history across systems and across different shells.
If you have go language installed on your system
go get -u github.com/bharatkalluri/harmony
Use harmony configure
to setup a harmony configuration
Instructions for how to get a github token can be found here, Make sure you select the "gist" checkbox on the permissions page.
Here is how a sample config file would look
$ cat ~/.config/harmony/config
GITHUB_TOKEN=<your github token>
SHELL_HISTORY_PATH=/Users/bharatkalluri/.zsh_history
SHELL_TYPE=zsh
Harmony uses secret gists as a data store. Every time the command is run, it either updates the gist or updates the local shell history by looking at which one was updated the latest.
To sync your history, just run
harmony
and it should auto magically make sure all your shell history is in sync!
Currently, bash is not supported. Although the code exists in the repo, bash support is explicitly disabled as it is not yet ready for production.
Bash support is on the roadmap and will be worked on soon!
Version | Tag | Published |
---|---|---|
v0.0.0-20200322074924-13743b8748d5 | 10mos ago | |
v0.1.2-0.20210327021850-ac1cf6705b45 | 1yr ago | |
v0.1.1 | 1yr ago | |
v0.1.0 | 1yr ago |