Last active
July 13, 2018 15:40
-
-
Save xsqian/ddcf7099a63e96aab55e4257b766ddc8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host = db.serverStatus().host; | |
prompt = function() { | |
return db+"@"+host+"$ "; | |
} | |
or to get the uptime and total number of documents | |
prompt = function() { | |
return "Uptime:"+db.serverStatus().uptime+" Documents:"+db.stats().objects+" > "; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment