merge-bash-history: command line utility to merge bash_history

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Warnings:

Please see README.md


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.1.0.1, 0.1.0.1
Change log None available
Dependencies attoparsec (>=0.12), base (>=4.7 && <5), data-ordlist (>=0.4), errors (>=2), merge-bash-history, optparse-applicative (>=0.11), text (>=1.2) [details]
License BSD-3-Clause
Copyright 2015 Jiri Marsicek
Author Jiri Marsicek
Maintainer jiri.marsicek@gmail.com
Category Tools
Home page http://github.com/j1r1k/merge-bash-history#readme
Source repo head: git clone https://github.com/j1r1k/merge-bash-history
Uploaded by JiriMarsicek at 2018-09-17T11:31:22Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for merge-bash-history-0.1.0.1

[back to package description]

merge-bash-history

Utility to be used with unison (http://www.cis.upenn.edu/~bcpierce/unison/) to merge .bash_history file accross multiple machines.

Installation

Clone the repository

git clone https://github.com/j1r1k/merge-bash-history.git

Install using stack

cd merge-bash-history
stack install

Example configuration in unison preferences file

Assuming you have root set to your home directory and merge-bash-history is in your $PATH

Add following to your unsion .prf file

merge = Name .bash_history -> merge-bash-history CURRENT1 CURRENT2 > NEW
backupcurrent = Name .bash_history

Manual usage

merge-bash-history [INPUT-FILE1] [INPUT-FILE2] > [MERGED-FILE]

Limitations

Warnings

Recommended Bash settings

shopt -s histappend
PROMPT_COMMAND="${PROMPT_COMMAND};history -a"

From Pawel Hajdan (http://phajdan-jr.blogspot.de/2015/03/more-reliable-handling-of-bash-history.html)