After I've now history in general working (with the kind help of Steve Fabian and David Marcus), there's one last nit with the dirhistory: it doesn't store the current directory, so when closing a shell, the last directory visited is not in the history. Is there a way to store the a directory into the dirhistory as soon as it is hit (typically through cd or cdd)? This would make such a directory available to all other concurrently open shells, similar to how the command history works. The next best workaround that I can think of is a "cdd d:\" (that's my "base directory") in TCEXIT. This forces the last used directory into the history, at least post-mortem. This way it is available for the next session, but not for any concurrent sessions. Any better solutions? Thanks.