How do I ask screen to behave like a standard bash shell?
Solution 1:
Thanks to this post, what I did was add one line to ~/.screenrc
:
# ~/.screenrc
defshell -bash # dash makes it a login shell
Then things in your ~/.bashrc
, /etc/bashrc
, etc. should get run.
Solution 2:
screen changes the term-type to screen
. You can do one of two things:
- change the term setting in your
.screenrc
- modify your
.bashrc
files look forTERM=screen
as well asTERM=xterm