Mongo shell tab completion
I was wondering if it's possible to configure the behavior of tab completion in the mongo shell? The two behaviors I've seen are:
I personally much prefer the first option. I've seen both behaviors on different environments (all with mongo version 2 and up), and can't figure out whether it's configurable or caused by the environment.
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:
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.
上一篇: Firebase从现有应用导入用户
下一篇: Mongo shell选项卡完成