Type: New Feature
Priority: Minor - P4
Resolution: Won't Do
Affects Version/s: None
Fix Version/s: None
It's common to jump between a number of databases in the shell. Having to type (even remember) the full name every time can be time consuming. It would be helpful for the shell to maintain a simple stack to jump between databases quickly.
// Push another DB onto stack (and change to it)
// Pop current DB and change to new head.
// Switch top two DBs (ala unix shell noarg pushd)
// Bring database at depth n to top of stack
// Show current stack
// Discard stack
There is a related feature request to tab-complete database names in the shell. With these two features, the efficiency of a mongodb shell session could be enhanced.