The mongo
shell autocompletion behaviour definitely isn't a configurable option. There are some differences in shell editing behaviour depending on the version of MongoDB you are using.
These differences extend beyond autocompletion to line editing, history, and keyboard shortcuts .. but to confirm your autocompletion observations:
- MongoDB 1.8.x and older had behaviour #1
- In MongoDB 2.0.x the shell editing library was changed from readline to linenoise (SERVER-2792) and resulted in a few changes including the tab completion (behaviour #2)
- As of MongoDB 2.2.x, the original readline-style completion has been restored (SERVER-3809) along with other improvements to shell interaction (eg: SERVER-4321, SERVER-3787, ..).
It is certainly possible to use a mongo
shell version which is different than your MongoDB server version if you prefer a given shell's behaviour. To take advantage of all server features and documented shell helpers you generally need a mongo
shell version which is the same or newer major version as compared to the mongod
version.