harmony

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

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 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!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL