Commit 2c95805b by Kevin Falcone

Update shell prompt to show database name

We use the same replica set for forums and edxapp, so showing that is
confusing.  Instead, show the DB.
parent 0db03587
// 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