It was mainly written because the sqlite merging broke a few to many times for
me and using a sqlite database seemed overkill.
The tool is just writing CSV files for each host which makes syncing them via
git pretty painless.
Has pretty much the same feature set as zsh-histdb:
* Start and stop time of the command
* Working directory in which the command was run
* Hostname of the machine the command was run in
* Unique session ids based on UUIDs
* Exit status of the command
* Import from zsh histfile and zsh-histdb sqlite database
Help output of default command:
```
» histdb -h
histdb-rs 0.1.0
USAGE:
histdb-rs [FLAGS] [OPTIONS] [SUBCOMMAND]
FLAGS:
--all-hosts
Print all hosts
--disable-formatting
Disable fancy formatting
-h, --help
Prints help information
--hide-header
Disable printing of header
-i, --in
Only print entries that have been executed in the current directory
--no-subdirs
Exclude subdirectories when filtering by folder
--show-duration
Show how long the command ran
--show-host
Print host column
--show-pwd
Show directory in which the command was run
--show-session
Show session id for command
--show-status
Print returncode of command
-V, --version
Prints version information
OPTIONS:
-c, --command <command>
Only print entries beginning with the given command
-t, --text <command-text>
Only print entries beginning with the given command
-d, --data-dir <data-dir>
Path to folder in which to store the history files [default: /home/athaller/.local/share/histdb-rs]
-e, --entries-count <entries-count>
How many entries to print [default: 25]
-f, --folder <folder>
Only print entries that have been executed in the given directory
--hostname <hostname>
Filter by given hostname