har
github.com/bharatkalluri/harmony
go get github.com/bharatkalluri/harmony
har

github.com/bharatkalluri/harmony

A cross machine shell history sync tool

by Bharat

v0.1.1 (see all)License:GPL-3.0
go get github.com/bharatkalluri/harmony
Readme

Harmony

A tool to sync ZSH shell history across systems and across different shells.

Installation

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

Run

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!

Note to bash users

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!

GitHub Stars

11

LAST COMMIT

1yr ago

MAINTAINERS

0

CONTRIBUTORS

1

OPEN ISSUES

3

OPEN PRs

0
VersionTagPublished
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
No alternatives found
No tutorials found
Add a tutorial