Sample Header Ad - 728x90

My bash prompt is not working in `screen`

2 votes
2 answers
2338 views
On RedHat, screen resets my bash prompt. I set PS1=\u@\h:\w in ~/.bashrc and ~/.bash_profile. I added shell -$SHELL as well to ~/.screenrc. But, when I open a brand new terminal window, the prompt is correct, except in screen. In screen I always get this prompt format: \u@\h> How can I set the same prompt in screen?
Asked by user2013619 (375 rep)
Sep 12, 2013, 08:21 AM
Last activity: May 15, 2025, 07:01 PM