The `.mongorc.js` is not found, but there is one

mongo --norc ignores the file, and you're good to go.


Not yet there isn't. There will be a "global" mongorc in future versions. For now you can "fake it" like so:

mongo --norc --shell fake.js

So you tell the shell to ignore looking for .mongorc.js then you pass in a javascript file just like you would if you wanted to run the contents.

The --shell parameter forces the return to "shell" after the file ("fake.js") has been evaluated.

So just put any valid JavaScript in that file and it will be treated like the entries in the standard .mongorc.js.