mongo-hacker
mongo-hacker copied to clipboard
Customization file
I have some customizations I want to do (see previous two tickets), but don't want to modify your original source. It would be nice if there was some additional file looked for automatically and loaded after yours is if present.
We might be able to do this with something like require.js
Instructions could be to 'load()' mongo_hacker.js in your .mongorc.js file, rather than replacing it with a link. I am sure many people do other things in their own rc file.
Yeah, the problem is that load() is relative to where you run the shell so unless you specify the full path it won't work. I think there will be a better solution soon now that I realized mongorc.js can be a directory in which everything gets loaded.
This is going to get much easier in 2.6 now that there is a global mongorc.js