Command-line utility for managing shell history in a SQLite database.
~/.bash_history is deduped and imported into a database.
- a home directory
Download and 1) add the directory to your
or 2) add
hist as an alias.
$ hist import
hist import to your
hist is in your path):
$ echo hist import >> ~/.profile
This will import your .bash_history every time you launch a new shell.
$ hist config version: 0.0.2 bash_history: /Users/jerry/.bash_history db: /Users/jerry/.historian.db sqlite3: /opt/local/bin/sqlite3
$ hist search monsters 690 echo a zombie with no conscience >> ~/monsters 689 echo ghoul >> ~/monsters 688 echo goblin >> ~/monsters 687 echo lochness >> ~/monsters
$ hist /monsters 690 echo a zombie with no conscience >> ~/monsters 689 echo ghoul >> ~/monsters 688 echo goblin >> ~/monsters 687 echo lochness >> ~/monsters
$ hist log 1020 rm -f README.md 1019 emacs README.md 1018 rm -rf .git
Live like your db file could be corrupted at any time.
Be wary of running specially crafted
hist commands or against
Cool Things in the Future
exportto append to
scrubitems from history
- set or autodetect configs
- other shells than bash
- timestamp support