So I have some experience with linux and I was always wondering if it is possible to modify the terminal so that it executes a different interpreter (like python
) rather than the default shell interpreter (like sh
or bash
).
(Note that this is not just "Where do I change my shell?" or "How to change from csh to bash as default shell". This is about running things that are not shells, per se, but are interpreters. I give python as an example to make things clearer, but I could have easily said php or any other interpreter.)
Is this possible, and if so, how would I do it?
/etc/shells
and usechsh
to change the interpreter to a user or is that wrong ? – Hamdi Jun 04 '20 at 13:13python
is not listed in/etc/shells
. These reasons don't go away by just adding it. Python is not prepared to be a login shell. You lose the environment setup. – Hauke Laging Jun 04 '20 at 13:31