leafsummer
6/3/2016 - 8:42 AM

.mongorc.js for mongo shell to change the prompt

.mongorc.js for mongo shell to change the prompt

host = db.serverStatus().host
prompt = function() {
    return  db+"@"+host+">"
}