I want to customize the prompt in mongo-hacker on Mac. Too much space is being taken up with my (shortened) path, mongo version, and current db name.
My-Macbook(mongod13.2.4) myMongoDB >
My ideal prompt shows only the current database:
myMongoDB >
Assuming you can build the mongo-hacker from the source, following steps should solve your problem:
return db + '> ';