I used zsh global history to find a command I've run previously but I realised I didn't remember which directory I ran it.
The I realised per-directory-history would know which directory I ran it from.
I was able to use rg my-command ~/.directory_history and it instantly showed me the history file which lead me to the directory it was run in.
It would be fantastic if there was an option to cd to the directory a command was run in when viewing global history.
I used zsh global history to find a command I've run previously but I realised I didn't remember which directory I ran it.
The I realised
per-directory-historywould know which directory I ran it from.I was able to use
rg my-command ~/.directory_historyand it instantly showed me the history file which lead me to the directory it was run in.It would be fantastic if there was an option to
cdto the directory a command was run in when viewing global history.