Skip to content
bulletmark edited this page Sep 14, 2010 · 3 revisions

cdhist – bash directory history

The file README.md describes what this utility does and how to install it.

It’s a very simple utility which intercepts your cd command in bash and keeps a stack of the directories you visit. You can list the directories at any time with cd -l and then navigate to last directory n with cd -n. Or list and navigate immediately with cd --. The directory stack is maintained across sessions/logins in a file ~/.cd_history. I’ve used this utility for years on linux and can’t live without it.

Clone this wiki locally