This is born from my switch to using the Oh-My-Zsh plugin for directory history,
per-directory-history. Initially I was satisfied with a simple function to grep through the .directory_history to find historical commands:
Sometimes I would find that I might want to know the source directory of where I ran those commands, so I could get some additional context of the commands just prior and just after. Context is what keeps me using directory history, and I suspect was a driver for the initial concept. So I've jotted down a few things that I would like a searching tool to do, and started creating search-directory-history.
Features Map
Basic Search - return commands from a single keyword search
Intermediate Search - & and | for multi-keyword searching
Advanced RegEx Searching - return commands matching a passed in regex
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.