You can use the userSetup.py script to make Maya run specific commands at start up.
userSetup.py runs when Maya is initializing. It will run any Python commands that are in it. It should only include commands that do not depend on Maya's functionality. It can be used to import libraries and add to the system path.
Platform | userSetup.py location |
---|---|
Linux and macOS | $MAYA_APP_DIR/<version>/scripts |
Windows | %MAYA_APP_DIR%/<version>/scripts |