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.
profile
orrc
file automatically start iPython for you, but that will not make it your shell; it will just be a program that your shell starts for you. – DopeGhoti Dec 10 '15 at 17:51pysh
shell which can be found at https://github.com/yunabe/pysh which may do what you are looking for. – DopeGhoti Dec 10 '15 at 17:58csh
ortcsh
sometime down the line, but that day is not today. – DopeGhoti Dec 10 '15 at 18:40