| Crates.io | pepys |
| lib.rs | pepys |
| version | 0.1.1 |
| created_at | 2026-01-16 06:08:08.934686+00 |
| updated_at | 2026-01-21 07:25:51.537451+00 |
| description | A command history tool that records shell commands with metadata |
| homepage | https://github.com/jaherne/pepys |
| repository | https://github.com/jaherne/pepys/ |
| max_upload_size | |
| id | 2047994 |
| size | 97,387 |
A command history tool that records shell commands with rich metadata.
Automatic Recording: Capture every shell command with metadata
Interactive Browser: TUI for browsing command history
Annotations: Add notes to specific commands
Export Capabilities:
Statistics: View insights about your command history
cargo build --release
sudo cp target/release/pepys /usr/local/bin/
Add to your ~/.bashrc:
eval "$(pepys init --shell bash)"
Add to your ~/.zshrc:
eval "$(pepys init --shell zsh)"
Once shell integration is enabled, pepys automatically records all commands.
Run the pepys record command to enable/disable recording the output of shell commands:
pepys record
When enabled, you'll see a red [●] indicator in your prompt. When visible, pepys is recording the output of all commands you run!
Note that this can include sensitive info, such as if you run cat /etc/shadow. Be careful, or delete commands from your history with sensitive outputs.
Output recording is disabled by default.
You can manually add a command to history:
pepys add --command "echo hello" --exit-code 0 --duration-ms 150
Launch the interactive TUI browser:
pepys browse
Keyboard shortcuts:
↑/k - Move up↓/j - Move downSpace - Toggle selectiona - Annotate selected commandd - Delete selected command? - Toggle helpq - Quitpepys list --limit 20
Export to bash script:
pepys export-script 1 2 3 --output script.sh
Export to markdown:
pepys export-markdown 1 2 3 --output commands.md
pepys stats
Command history is stored in a SQLite database located at:
~/Library/Application Support/pepys/history.db~/.local/share/pepys/history.dbC:\Users\<username>\AppData\Roaming\pepys\history.dbThe following features are planned for future releases:
No, this is meant for personal consumption. No guarantees are made about data safety, and there's no way to prevent a user from deleting their own data. Do not rely on this for legal auditing.