How to read $PS1 on non-login shells?
Maybe the answer is just too elementary, but I'm at a loss about how can I achieve this.
Let's say that I have a customized Bash prompt stored as a PS1 variable. My variable gets read every time I invoke a login shell, i.e., when logging in in one of the standard virtual terminal or by invoking xterm with the -ls parameter.
However, when I just invoke the terminal without specifying that it is a login shell, I just get something like: bash-XXX$ as a prompt.
My question is: where should I place my PS1 variable so that it could get read even on non-login shells?
Thanks in advance!