How to preload some libraries and scripts in python before I call python command? Is there something like .bashrc file to deal with predefining some functions/variables befo
How about this:
python -i -c "import math"
And you can put this into a bash file, like b.sh
#! /bin/bash python -i -c "import math"
Then you can set whatever you want.