Commit 50951abf by Kevin Falcone Committed by GitHub

Merge pull request #3232 from edx/jibsheet/mongo-shell-prompt

Update shell prompt to show database name
parents 7f992be9 2c95805b
// we only ever connect to secondaries, avoid people needing to remember to type this
rs.slaveOk();
// This uses the DB name rather than the replica set, which I think is more useful
var prompt = function() {
return db.getName() + "> ";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment