totally replacing bash with IPython on my Linux system
Brian Merchant <[email protected]> Thu, 10 Dec 2015 09:45:46 -0800
| Newsgroups | gmane.comp.python.ipython.user |
|---|---|
| Message-ID | <CAMt_P4m_6qp=nK8fKgixondcoxi0y6t9_jJO0ZoKe9TGVy9XZg@mail.gmail.com> |
--===============6853130525641534868== Content-Type: multipart/alternative; boundary=001a11458bbeda9ab105268ec601 --001a11458bbeda9ab105268ec601 Content-Type: text/plain; charset=UTF-8 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? * http://unix.stackexchange.com/questions/176091/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. 2) *.profile is written in shell script -- can I get my system to understand that I want it to execute a Python script instead?* http://unix.stackexchange.com/questions/248477/profile-is-written-in-shell-script-can-i-instead-make-my-system-understand-th 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" scripts that have IPython magics/Python written inside them? *For example, I'd like to write my .profile file using IPython magics/Python. Kind regards, Brian --001a11458bbeda9ab105268ec601 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div><div>I'd like to replace bash with IPython o= n my system, so that even files like .profile are in Python rather than she= ll script.<br><br></div>I have some confusion on the topic, even though ask= ing a few questions on the matter. Here are the questions I have asked prev= iously:<br><br></div>1) <b>How can I replace bash with Python? </b><a href= =3D"http://unix.stackexchange.com/questions/176091/how-can-i-replace-bash-w= ith-python">http://unix.stackexchange.com/questions/176091/how-can-i-replac= e-bash-with-python</a><br><br></div><div>From the answer to that question, = I learned how to automatically replace bash with IPython after log in.<br><= br>2) <b>.profile is written in shell script -- can I get my system to unde= rstand that I want it to execute a Python script instead?</b> <a href=3D"ht= tp://unix.stackexchange.com/questions/248477/profile-is-written-in-shell-sc= ript-can-i-instead-make-my-system-understand-th">http://unix.stackexchange.= com/questions/248477/profile-is-written-in-shell-script-can-i-instead-make-= my-system-understand-th</a><br><br></div><div>From the answer to that quest= ion, 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. <br><br></div><div>So, my question now= is: <b>how do I get my base system shell to be IPython, so that it can sou= rce ".profile" scripts that have IPython magics/Python written in= side them? </b>For example, I'd like to write my .profile file using IP= ython magics/Python.<br><br></div><div>Kind regards,<br></div><div>Brian<br= ></div><div><br><br></div><div><br><br></div><div><div><div><br><br></div><= /div></div></div> --001a11458bbeda9ab105268ec601-- --===============6853130525641534868== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ IPython-User mailing list [email protected] https://mail.scipy.org/mailman/listinfo/ipython-user --===============6853130525641534868==--