-
Type: Story
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
3
-
Iteration Yucca
-
-
Needed
-
User Story
As a user,
I want mongosh to load a .mongoshrc.js file at startup
So that I can bootstrap the shell with my customizations and extended functionality
Acceptance Criteria
- When the shell starts, ~/.mongoshrc.js is loaded and evaluated
- In ~/.mongoshrc.js it's possible to load other js files from other locations on the filesystem
- Users can skip loading .mongoshrc.js with the --norc CLI argument
- if .mongoshrc.js does not exist, mongosh will check if .mongorc.js exists and if it does, warn the user that they should rename/copy it. We will not load it automatically as doing so might prevent mongosh to start properly if the rc file contains commands or API calls that are not supported in the new shell.
- depends on
-
MONGOSH-386 Support for load() method
- Closed
- is depended on by
-
MONGOSH-627 Add telemetry events
- Closed