Search your full shell history by keyword using a local index, even after the history has rolled over or been cleared.
Find past debugging commands and log entries from the terminal using an interactive full-screen interface with vim-style shortcuts.
Run devgrep in watch mode to keep the search index updated automatically whenever your shell history or log files change.
Add devgrep to your workflow as a pipe-friendly search tool that outputs plain text results for use with other terminal commands.
devgrep is a command-line search tool for developers that lets you find past shell commands, log file entries, and markdown notes without leaving the terminal. The core problem it addresses is that useful commands and debugging steps disappear from shell history over time, buried under newer entries or lost when log files rotate. devgrep builds a local search index so those breadcrumbs stay retrievable. When you run it, devgrep reads your shell history (both Bash and Zsh), any log files in directories you point it at, and markdown note files, then stores everything in a local database on your machine. Nothing is sent anywhere: there is no cloud sync, no account, and no analytics. Searching that index can be done from a full-screen interactive interface in the terminal or as plain text output suitable for piping into other tools. The interactive view uses vim-style keyboard shortcuts: move through results with j and k, jump to a history entry and re-run it with Enter, or copy it with y. Search results show the original command or log line, how long ago it was used, and the directory it came from. Log and note results include nearby context lines if the source file still exists on disk. Indexing can run once or in a continuous watch mode that updates the database when files change. You can preview what would be indexed before committing, and the tool includes a doctor command that reports on the health of the local setup. Installation is a single Go install command or a shell script that downloads a pre-built binary for Linux, macOS, or Windows. The project is written in Go and is organized around a pluggable indexer interface, meaning new data sources can be added without changing the existing command structure.
← aasixh on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.