Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

additional setting to turn off colorization #114

Closed
tobsn opened this issue Jan 9, 2015 · 3 comments
Closed

additional setting to turn off colorization #114

tobsn opened this issue Jan 9, 2015 · 3 comments
Assignees
Milestone

Comments

@tobsn
Copy link
Contributor

tobsn commented Jan 9, 2015

add another settings flag to turn colors on/off
reason: some shells have problems with the colors. right now we're using MongoChef and it doesn't support shell colors - had to remove the isWindow() to make a color on/off switch out of force colors. would be nice to have a default off

@stennie
Copy link
Collaborator

stennie commented Jan 9, 2015

You can force colours off by adding __colorize = false; at the end of your .mongorc.js.

For Robomongo I set this in ~/.robomongorc.js so I still have colour in my normal mongo shell.

@akostadinov
Copy link

+1, add option to disable colors. In addition - detect tty and enable colors only in ttys. Otherwise scripting mongo queries is a pain.

@TylerBrock
Copy link
Owner

Sounds good, in the meantime you can run mongo scripts without the color by invoking the shell with --norc so that mongo-hacker doesn't interfere.

mongo --norc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants