UPDATE: removed duplicates, now requires python
This little script allows you to access your directory history using fzf. Directory history is included for that session and for all previous sessions.
All methods of changing directories should be supported, as the script does not change cd, but just checks for a change in directory after each new command.
The history can be accessed via alt+h, and is designed to look and feel like the other key mapped bash fzf features, e.g. command history search.
Just place the script below somewhere (e.g. ~/.scripts/terminal), and then add the following line to your .bashrc
source ~/.scripts/terminal/fzf_directory_history
CD_HIST_GLOBAL
Whether to enable global directory history, or session only, true or false
CD_HIST_FILE
The file to store global history in, defaults to ~/.cd_history
CD_HIST_FZF_OPTS
Extra fzf options to use when launching the history browser