Cwd_logger is a project mainly written in Ruby, it's free.
Toy for logging current working directory in mongodb
A simple test script to log working directories into mongodb
Setup a mongodb database
Call logcwd.rb when you change directory
Set up shell functions for calling cwd_frequency.rb or cwd_recently.rb