[SERVER-3532] the mongo shell should use something more clever than .dbshell for its history file Created: 04/Aug/11  Updated: 25/Oct/21  Resolved: 25/Oct/21

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 1.8.2
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Derick Rethans Assignee: Geert Bosch
Resolution: Won't Fix Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Attachments: File diff    
Participants:

 Description   

The mongo shell keeps a history of all commands run in the file ~/.dbshell. With hundreds of such files in the home dir, this name doesn't really show it's for mongodb. I'd recommend to use something like ~/.mongo/dbshell or ~/.mongoshell to have some sort of idea what file to look for when trying to find your history file.



 Comments   
Comment by Richard Kreuter (Inactive) [ 10/Dec/12 ]

Quasi-separate feature request: allow the shell not to store history at all.

Offhand, if the shell had a flag to specify the name of the history file, then saying "--historyfile /dev/null" would solve both the original request and this separate request.

Generated at Thu Feb 08 03:03:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.