-1

I'm running the mongo shell by invoking mongo at the command line. The result is a bland shell experience. I would like to see colored JSON output, etc. I tried running:

> db.my_collection.find().pretty()

but it didn't work.

I also tried adding the following line to ~/.mongorc.js:

DBQuery.prototype._prettyShell=true

but it didn't work.

tadasajon
  • 14,276
  • 29
  • 92
  • 144

1 Answers1

1

Try the MongoDB shell enhancement. You can make particular tweaks after you clone the repo.

Ij888
  • 50
  • 9