Oh, I should mention a personal favorite I ginned up a long time ago: Per-project shell history.
This gist shows you how to keep a separate history for everything under /src/*
https://gist.github.com/mhoye/469ed97d7887b451da5d45b87acb53f5
Top-level
Oh, I should mention a personal favorite I ginned up a long time ago: Per-project shell history. This gist shows you how to keep a separate history for everything under /src/* https://gist.github.com/mhoye/469ed97d7887b451da5d45b87acb53f5 1 comment
|
@mhoye I have been using project-oriented history for a while too, though it's based on named projects instead of directories.
I tend to leave a terminal tab open for most long-term projects, and the history module prods me for a project name when I open a new one. It also restores the right one for a given terminal ID on restore.
If it's an existing project, it'll switch to the directory I was last using for that project. It also has a little per-project init file.