How mlohajner/quote_history works
quote_history adds a secondary history stream to an interactive Bash session: external-command output is captured, quoted content is extracted into a separate history file, and keyboard shortcuts let the user browse or purge snippets. The README documents these responsibilities and the extractor’s output, but the shell-script excerpts were not provided, so their precise call sequence and the roles of the tee-named script cannot be verified.
Main entry points: qh_extension.sh History extension · bashrc Bash startup · qh_extension-tee.sh Output capture · qh_extract.c Quote extractor
Components 7
Shell Integration
- Bash startup
bashrc - History extension
qh_extension.sh
Capture and Extraction
- Output capture
qh_extension-tee.sh - Quote extractor
qh_extract.c
Snippet History
- Quote history
Other components
- Terminal user
- PTY capture tool
Connections 7
- Terminal user → Bash startup: enables extension
README.md - Bash startup → History extension: sources
README.md - History extension → Output capture: captures output
- Output capture → PTY capture tool: uses PTY capture
- History extension → Quote extractor: runs extraction
- Quote extractor → Quote history: appends snippets
README.md - Terminal user → History extension: browses or purges
README.md