Configure mongosh配置mongosh
Use an Editor for Commands使用命令编辑器
Learn to use external or built-in editors in mongosh for multiline command editing, including setting up and using editors like vi, nano, or Visual Studio.学习在mongosh中使用外部或内置编辑器进行多行命令编辑,包括设置和使用vi、nano或Visual Studio等编辑器。
Configure Settings配置设置
Configure mongosh settings to customize shell behaviors, including logging, telemetry, and history management, using the config API or a global configuration file.使用配置API或全局配置文件,配置mongosh设置以自定义shell行为,包括日志记录、遥测和历史记录管理。
Customize the mongosh Prompt自定义mongosh提示
Customize the mongosh prompt to display dynamic session information, such as line numbers, database and hostname, or system uptime and document count.自定义mongosh提示符以显示动态会话信息,如行号、数据库和主机名,或系统正常运行时间和文档计数。
Configure Telemetry Options配置遥测选项
Configure telemetry options in mongosh to manage anonymous usage data collection, with options to enable or disable it at any time.在mongosh中配置遥测选项以管理匿名使用数据集合,并可随时启用或禁用该选项。