TylerBrock / mongo-hacker

MongoDB Shell Enhancements for Hackers
tylerbrock.github.io/mongo-hacker
MIT License
1.79k stars 235 forks source link

Disable colorize when loaded from a Robomongo shell #108

Closed stennie closed 10 years ago

stennie commented 10 years ago

I thought it might be possible to detect if running in a Robomongo shell, but ~/mongorc.js is loaded before Robomongo injects any unique JS variables.

Assuming #107 is merged, an easier fix would be for users to add __colorize = false; to ~/.robomongorc.js. That will disable colors for Robomongo sessions while still having access to the Mongo Hacker Enhancements (as well as leaving color highlighting enabled in regular mongo shell sessions).