hishtory
Synced queryable shell history with context
TLDR
SYNOPSIS
hishtory command [options] [arguments]
DESCRIPTION
hishtory is a shell history tool that replaces the default history with a synced, queryable, and context-aware alternative. It hooks into your shell to track all commands that are run, saving them in a local SQLite database with additional context like the working directory, exit code, and duration.
History is end-to-end encrypted with AES-GCM and can be synced across all your devices. When you press Control+R or run hishtory query, a SQL query finds matching entries in the local database. Queries can also be prefixed with ? to use ChatGPT for natural language command search.
PARAMETERS
install
Install and configure hishtoryquery term
Search shell historyexport
Export all history entriesstatus
Show sync and configuration statusconfig-set key value
Set a configuration optionconfig-get key
Get a configuration valueredact query
Delete matching history entries
CAVEATS
Requires an active shell session to record commands. Syncing across devices requires internet connectivity. The AI-powered search feature requires a ChatGPT API connection. End-to-end encryption means lost encryption keys result in unrecoverable data.
HISTORY
hishtory was created by David Dworken and is written in Go. It was designed to address the limitations of built-in shell history by adding encryption, cross-device sync, and contextual metadata.

