[SERVER-1687] Mongo shell reads a defaults file on startup Created: 26/Aug/10 Updated: 12/Jul/16 Resolved: 21/Jul/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | 1.9.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kenny Gorman | Assignee: | Matt Dannenberg |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Participants: | |||||
| Description |
|
alter mongo shell to read a defaults file on startup. This allows users to customize the environment, create functions, etc in the shell. This could be similar to a .bashrc file, or a login.sql in sqlplus, or /etc/psqlrc and then from $(HOME)/.psqlrc in PostgreSQL. It would be nice if it checked the working dir first, the a default spot after that. |
| Comments |
| Comment by Matt Dannenberg [ 21/Jul/11 ] |
|
if a file named .mongorc.js is found in the home directory, it will be run on start up |
| Comment by auto [ 24/Jun/11 ] |
|
Author: {u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}Message: Merge pull request #53 from dannenberg/initrcyetagain
|
| Comment by auto [ 24/Jun/11 ] |
|
Author: {u'login': u'dannenberg', u'name': u'dannenberg', u'email': u'dannenberg.matt@gmail.com'}Message: |
| Comment by auto [ 24/Jun/11 ] |
|
Author: {u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}Message: Revert This reverts commit 24fdf9b1a1a63c7ac89c5e6441010db0bda30f50. |
| Comment by auto [ 24/Jun/11 ] |
|
Author: {u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}Message: Merge pull request #49 from dannenberg/initrccorrect
|
| Comment by auto [ 24/Jun/11 ] |
|
Author: {u'login': u'dannenberg', u'name': u'dannenberg', u'email': u'dannenberg.matt@gmail.com'}Message: |