I'd like to replace bash with IPython on my system, so that even files like .profile are in Python rather than shell script.
I have some confusion on the topic, even though asking a few questions on the matter. Here are the questions I have asked previously:
1) How can I replace bash with Python?
From the answer to that question, I learned how to automatically replace bash with IPython after log in (note that it still uses .profile written in shell script).
From the answer to that question, I learned that .profile file is "sourced" rather than "executed" -- that is, the lines in .profile are run one by one, as if one were typing them into the shell.
So, my question now is: how do I get my base system shell to be IPython, so that it can source .profile files with IPython magics/Python written inside them? For example, I'd like to write my .profile file using IPython magics/Python.