Permalink
Browse files

mongorc for customizing MongoDB shell

  • Loading branch information...
1 parent 6504367 commit 57c3b83e7ff625505b67a351f7ceacb8ccbbe345 @ches committed Feb 10, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 .mongorc.js
View
@@ -0,0 +1,8 @@
+// .mongorc.js is executed on mongo shell initialization in MongoDB 1.9.1+
+
+// Set prompt to database@hostname>
+host = db.serverStatus().host;
+prompt = function() {
+ return db + "@" + host + "> ";
+};
+

0 comments on commit 57c3b83

Please sign in to comment.