← 返回命令列表

Linux command

hishtory 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install and enable

hishtory install

Query shell history

hishtory query [search_term]

Enable Control+R integration

hishtory config-set enable-control-r true

Search with AI assistance

hishtory query ?[how to find large files]

Export all history entries

hishtory export

Show sync and configuration status

hishtory status

Delete history entries matching a query

hishtory redact [search_term]

Temporarily disable recording

hishtory disable

说明

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.

参数

install
Install and configure hishtory
query _term_
Search shell history
export
Export all history entries
status
Show sync and configuration status
config-set _key_ _value_
Set a configuration option
config-get _key_
Get a configuration value
redact _query_
Delete matching history entries locally and from all synced devices.
update
Securely download and apply the latest hishtory update.
disable
Temporarily stop recording shell history.
enable
Resume recording shell history.

FAQ

What is the hishtory command used for?

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.

How do I run a basic hishtory example?

Run `hishtory install` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does install do in hishtory?

Install and configure hishtory