distory saves your command histories on each directory.
# requirements: go version >= 1.16.0
go install github.com/snowhork/distory@v0.0.1
First, you need to set hook distory -a <COMMAND> for your using shell. (bash,zsh, etc..)
Then, you can see directory's command history by distory.
Install https://github.com/rcaloras/bash-preexec for command hook
curl https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh -o ~/.bash-preexec.shEdit your ~/.bash_profile
source ~/.bash-preexec.sh
preexec() { distory -a "$1"; }