mongo-hacker icon indicating copy to clipboard operation
mongo-hacker copied to clipboard

Customization file

Open rogerbinns opened this issue 13 years ago • 4 comments

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.

rogerbinns avatar Sep 10 '12 19:09 rogerbinns

We might be able to do this with something like require.js

TylerBrock avatar Sep 10 '12 21:09 TylerBrock

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.

crudson avatar Sep 14 '12 04:09 crudson

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.

TylerBrock avatar Feb 03 '13 00:02 TylerBrock

This is going to get much easier in 2.6 now that there is a global mongorc.js

TylerBrock avatar Mar 12 '14 13:03 TylerBrock