Last Updated: February 25, 2016
·
427
· jwerre

Make Mongo shell always output pretty results

If you're getting tied of writing ".pretty()" after each command try this:

$ echo DBQuery.prototype._prettyShell = true >> .mongorc.js