TylerBrock / mongo-hacker

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

There's no `mongo_hacker.js` #84

Closed dandv closed 10 years ago

dandv commented 10 years ago

The instructions read like this:

$ git clone git@github.com:TylerBrock/mongo-hacker.git
$ cd mongo-hacker
$ ln -sf mongo_hacker.js ~/.mongorc.js

But there's no longer a mongo_hacker.js in the repo.

TylerBrock commented 10 years ago

The releases are in the releases tab, I need to update the instructions.

If you want to build from master, just run make in the cloned directory before linking.

dandv commented 10 years ago

I see some ZIPs in the releases tab... BTW the install script is broken too.

stennie commented 10 years ago

If you have a github checkout, you need to run make to create mongo_hacker.js:

# Only create mongo_hacker.js
> make mongo_hacker.js
cat base.js config.js hacks/aggregation.js hacks/api.js hacks/auto_complete.js hacks/cmd_search.js hacks/color.js hacks/common.js hacks/find_and_modify.js hacks/helpers.js hacks/index_paranoia.js hacks/old_aggregation.js hacks/prompt.js hacks/sh_status.js hacks/show.js hacks/uuid.js hacks/verbose.js > mongo_hacker.js

# Symlink to your home directory (will fail if ~.mongorc.js already exists)
> make install
INSTALLATION
Linking MongoHacker to .mongorc.js in your home directory:
ln -s "/Users/stephen/src/github/mongo-hacker/mongo_hacker.js" ~/.mongorc.js

# Default: create mongo_hacker.js and try to install
> make