TylerBrock / mongo-hacker

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

Unable to execute .mongorc.js #1

Closed abhas closed 12 years ago

abhas commented 12 years ago

After I link mongo_hacker.js as ~/.mongorc.js and run the mongo shell, I get the following error:

Mon Sep 10 06:37:25 ReferenceError: setVerboseShell is not defined /home/abhas/.mongorc.js:8
The ".mongorc.js" file located in your home folder could not be executed

Is there something that I could be doing wrong?

BTW, I'm using zsh on an Ubuntu computer.

TylerBrock commented 12 years ago

Are you using MongoDB 2.2? I should mention that it's required.

TylerBrock commented 12 years ago

If you aren't using 2.2 I could make some changes so that it works. Let me know.

abhas commented 12 years ago

You're right. My mongodb version was older. I just upgraded to monodb 2.2 and it worked.

Thanks a lot for your work. This was really a missing piece!

TylerBrock commented 12 years ago

Wow, thank you for the compliment and reporting the issue. I will update it to work with older shells as well. Please submit pull requests for any enhancements you think others might enjoy. I'm trying to make the shell much more usable and enjoyable like the rest of MongoDB.